mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
visual: avoid unreffing a NULL object
This commit is contained in:
parent
6512a6c73d
commit
500bccf6ac
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ gst_visual_finalize (GObject * object)
|
||||||
GstVisual *visual = GST_VISUAL (object);
|
GstVisual *visual = GST_VISUAL (object);
|
||||||
|
|
||||||
g_object_unref (visual->adapter);
|
g_object_unref (visual->adapter);
|
||||||
gst_object_unref (visual->pool);
|
if (visual->pool)
|
||||||
|
gst_object_unref (visual->pool);
|
||||||
gst_visual_clear_actors (visual);
|
gst_visual_clear_actors (visual);
|
||||||
|
|
||||||
GST_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
|
GST_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
|
||||||
|
|
Loading…
Reference in a new issue