mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
plugin: Clear paintable importer in dispose
Remove our ref on importer a little earlier, with a lock taken
This commit is contained in:
5
lib/gst/plugin/gstclapperpaintable.c
vendored
5
lib/gst/plugin/gstclapperpaintable.c
vendored
@@ -84,6 +84,10 @@ gst_clapper_paintable_dispose (GObject *object)
|
|||||||
|
|
||||||
GST_CLAPPER_PAINTABLE_UNLOCK (self);
|
GST_CLAPPER_PAINTABLE_UNLOCK (self);
|
||||||
|
|
||||||
|
GST_CLAPPER_PAINTABLE_IMPORTER_LOCK (self);
|
||||||
|
gst_clear_object (&self->importer);
|
||||||
|
GST_CLAPPER_PAINTABLE_IMPORTER_UNLOCK (self);
|
||||||
|
|
||||||
GST_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
|
GST_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,7 +99,6 @@ gst_clapper_paintable_finalize (GObject *object)
|
|||||||
GST_TRACE ("Finalize");
|
GST_TRACE ("Finalize");
|
||||||
|
|
||||||
g_weak_ref_clear (&self->widget);
|
g_weak_ref_clear (&self->widget);
|
||||||
gst_clear_object (&self->importer);
|
|
||||||
|
|
||||||
g_mutex_clear (&self->lock);
|
g_mutex_clear (&self->lock);
|
||||||
g_mutex_clear (&self->importer_lock);
|
g_mutex_clear (&self->importer_lock);
|
||||||
|
Reference in New Issue
Block a user