GNOME Bugzilla – Bug 551978
Memleak in gst_element_sync_state_with_paren
Last modified: 2008-09-14 22:02:04 UTC
Please describe the problem: If the change state is a failure the parent isn't unreffed since the goto skips the unref ret = gst_element_set_state (element, target); if (ret == GST_STATE_CHANGE_FAILURE) goto failed; gst_object_unref (parent); Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: See patch below to fix
Created attachment 118594 [details] [review] Patch to fix the memleak Original Patch by Sebastien Cote
Based on patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst/gstelement.c: (gst_element_sync_state_with_parent): Avoid leaking the parent ref when we fail changing the state of the element using gst_element_sync_state_with_parent(). Fixes #551978.