mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst/gstbin.c: Guard gst_object_unref call against a NULL object (dispose can theoretically be called multiple times).
Original commit message from CVS: * gst/gstbin.c: (gst_bin_dispose): Guard gst_object_unref call against a NULL object (dispose can theoretically be called multiple times).
This commit is contained in:
parent
483c800475
commit
da80e6167e
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-01-18 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/gstbin.c: (gst_bin_dispose):
|
||||
Guard gst_object_unref call against a NULL object (dispose
|
||||
can theoretically be called multiple times).
|
||||
|
||||
2006-01-18 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstbin.c: (gst_bin_element_set_state):
|
||||
|
|
|
@ -381,8 +381,8 @@ gst_bin_dispose (GObject * object)
|
|||
GST_CAT_DEBUG_OBJECT (GST_CAT_REFCOUNTING, object, "dispose");
|
||||
|
||||
bin_remove_messages (bin, NULL, GST_MESSAGE_ANY);
|
||||
gst_object_unref (bin->child_bus);
|
||||
bin->child_bus = NULL;
|
||||
|
||||
gst_object_replace ((GstObject **) & bin->child_bus, NULL);
|
||||
gst_object_replace ((GstObject **) & bin->provided_clock, NULL);
|
||||
|
||||
while (bin->children) {
|
||||
|
|
Loading…
Reference in a new issue