Message ID | f5e8439f-f941-8951-75d3-ad94b68c5f67@gmail.com |
---|---|
State | Superseded |
Headers | show |
On Tue, Jan 01, 2019 at 17:58:42 -0300, James Almer wrote: > Does the attached (untested) patch fix these two for you? [...] > + if (!this) > + return > + av_freep(&this->imemvtbl); Do add a semicolon after "return" for good measure. ;) Moritz
diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c index 664246da92..a4f64ed884 100644 --- a/libavdevice/dshow_pin.c +++ b/libavdevice/dshow_pin.c @@ -249,8 +249,16 @@ libAVPin_Setup(libAVPin *this, libAVFilter *filter) return 1; } + +static void +libAVPin_Free(libAVPin *this) +{ + if (!this) + return + av_freep(&this->imemvtbl); +} DECLARE_CREATE(libAVPin, libAVPin_Setup(this, filter), libAVFilter *filter) -DECLARE_DESTROY(libAVPin, nothing) +DECLARE_DESTROY(libAVPin, libAVPin_Free) /***************************************************************************** * libAVMemInputPin