GNOME Bugzilla – Bug 392359
[ffmpegenc] potential crash in dispose due to double-free
Last modified: 2007-01-03 17:00:16 UTC
The gstffmpegenc module frees memory in the objet's dispose method instead of finalize. Sometimes, the dispose method is called more than once and this leads to crashes. Since the current code doesn't do any kind of check, memory recovery should be done in the finalize method. http://le-hacker.org/papers/gobject/ch05.html#howto-gobject-destruction
You've actually run into this in practice? Anyway, fixed in CVS, thanks for the bug report: 2007-01-03 Tim-Philipp Müller <tim at centricular dot net> * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_class_init), (gst_ffmpegenc_finalize): Turn dispose function into finalize function to avoid double-frees and potential crashes caused by them in some circumstances. Fixes #392395.