GNOME Bugzilla – Bug 341873
[alsasink] minor memory leak, uses unprotected static variable
Last modified: 2006-05-15 16:47:15 UTC
alsasink uses a static snd_output_t *output; variable unprotected. I don't think thread-safety is actually an issue here, but the allocated snd_output_t structure may leak if there is more than one alsasink instance at a time, because the second instance will just overwrite the previously allocated snd_output_t. Patch attached. Might be a bit overdone, maybe we can just remove this stuff altogether?
Created attachment 65510 [details] [review] proposed patch
Thanks for reviewing this. 2006-05-15 Tim-Philipp Müller <tim at centricular dot net> * ext/alsa/gstalsasink.c: (gst_alsasink_finalise), (gst_alsasink_init): * ext/alsa/gstalsasink.h: Don't leak allocated snd_output_t structure if there's more than one alsasink instance at a time (#341873). Also fix GObject macros in header file.