Commit 0cc42f9d authored by Matthew Waters's avatar Matthew Waters 🐨 Committed by Tim-Philipp Müller
Browse files

element: NULL the lists of contexts in dispose()

If dispose() is called more than once, we may double unref the list of

Part-of: <!877>
parent 867bfb84
......@@ -3304,6 +3304,7 @@ gst_element_dispose (GObject * object)
gst_object_replace ((GstObject **) clock_p, NULL);
gst_object_replace ((GstObject **) bus_p, NULL);
g_list_free_full (element->contexts, (GDestroyNotify) gst_context_unref);
element->contexts = NULL;
GST_CAT_INFO_OBJECT (GST_CAT_REFCOUNTING, element, "%p parent class dispose",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment