projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680fdd6
)
fixed a double-unreffing problem when disposing of elements
author
Andy Wingo
<wingo@pobox.com>
Sat, 24 Nov 2001 02:49:54 +0000
(
02:49
+0000)
committer
Andy Wingo
<wingo@pobox.com>
Sat, 24 Nov 2001 02:49:54 +0000
(
02:49
+0000)
Original commit message from CVS:
fixed a double-unreffing problem when disposing of elements
gst/gstelement.c
patch
|
blob
|
history
diff --git
a/gst/gstelement.c
b/gst/gstelement.c
index
d1f3139
..
e7597af
100644
(file)
--- a/
gst/gstelement.c
+++ b/
gst/gstelement.c
@@
-963,7
+963,8
@@
gst_element_dispose (GObject *object)
orig = pads = g_list_copy (element->pads);
while (pads) {
pad = GST_PAD (pads->data);
- gst_object_unref (GST_OBJECT (pad));
+ // the gst_object_unparent will do the unreffing
+ gst_element_remove_pad(element, pad);
pads = g_list_next (pads);
}
g_list_free (orig);