diff --git a/xilinx/src/xlnx_dec_utils.rs b/xilinx/src/xlnx_dec_utils.rs index 4b510bfd..ca0b6b3f 100644 --- a/xilinx/src/xlnx_dec_utils.rs +++ b/xilinx/src/xlnx_dec_utils.rs @@ -233,10 +233,6 @@ impl Drop for XlnxDecoderXrmCtx { if self.decode_res_in_use { xrmCuListRelease(self.xrm_ctx, &mut self.cu_list_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } } diff --git a/xilinx/src/xlnx_enc_utils.rs b/xilinx/src/xlnx_enc_utils.rs index 1cef85c3..2b3cc060 100644 --- a/xilinx/src/xlnx_enc_utils.rs +++ b/xilinx/src/xlnx_enc_utils.rs @@ -228,10 +228,6 @@ impl Drop for XlnxEncoderXrmCtx { if self.encode_res_in_use { xrmCuListRelease(self.xrm_ctx, &mut self.cu_list_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } } diff --git a/xilinx/src/xlnx_scal_utils.rs b/xilinx/src/xlnx_scal_utils.rs index 30a7df55..41c642cf 100644 --- a/xilinx/src/xlnx_scal_utils.rs +++ b/xilinx/src/xlnx_scal_utils.rs @@ -154,10 +154,6 @@ impl Drop for XlnxScalerXrmCtx { if self.scal_res_in_use { xrmCuRelease(self.xrm_ctx, &mut self.cu_res); } - if self.xrm_reserve_id != 0 { - xrmCuPoolRelinquish(self.xrm_ctx, self.xrm_reserve_id); - } - xrmDestroyContext(self.xrm_ctx); } } }