playback/player: gtk: fix widget leak

The ref returned by gst_player_gtk_video_renderer_get_widget() was never
released.
This commit is contained in:
Guillaume Desmottes 2016-07-20 16:20:40 +02:00 committed by Sebastian Dröge
parent 5b8ba60c46
commit f8d4796a57

View file

@ -1775,6 +1775,7 @@ gtk_play_dispose (GObject * object)
g_object_unref (self->player); g_object_unref (self->player);
} }
self->player = NULL; self->player = NULL;
g_clear_object (&self->video_area);
G_OBJECT_CLASS (gtk_play_parent_class)->dispose (object); G_OBJECT_CLASS (gtk_play_parent_class)->dispose (object);
} }