gst/gstelement.c: Avoid leaking the parent ref when we fail changing the state of the element using gst_element_sync_...

Original commit message from CVS:
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.
This commit is contained in:
Antoine Tremblay 2008-09-14 22:01:30 +00:00 committed by Wim Taymans
parent e769a7a0e4
commit 607fd58a5e
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2008-09-14 Wim Taymans <wim.taymans@collabora.co.uk>
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.
2008-09-11 Tim-Philipp Müller <tim.muller at collabora co uk>
* docs/manual/intro-motivation.xml::

View file

@ -1840,6 +1840,7 @@ failed:
GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"syncing state failed (%s)",
gst_element_state_change_return_get_name (ret));
gst_object_unref (parent);
return FALSE;
}
}