Open kiwiant opened 1 year ago
This is a false positive. It happens because Infer# probably doesn't have access to the implementation of EncoderParameters's get_Param() instance method -- the analysis isn't aware that the EncoderParameter object is still reachable from the encoderParameters object. This is an artifact of the not having access to the complete program space.
InferSharp reports PULSE_RESOURCE_LEAK "Resource dynamically allocated by constructor System.Drawing.Imaging.EncoderParameter()" for the following code snippet. Dispose methods on both EncoderParameter and EncoderParameters appear to free the resources.