visual: avoid unreffing a NULL object

This commit is contained in:
Wim Taymans 2011-05-06 11:31:43 +02:00
parent 6512a6c73d
commit 500bccf6ac

View file

@ -253,6 +253,7 @@ gst_visual_finalize (GObject * object)
GstVisual *visual = GST_VISUAL (object);
g_object_unref (visual->adapter);
if (visual->pool)
gst_object_unref (visual->pool);
gst_visual_clear_actors (visual);