mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
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:
parent
5b8ba60c46
commit
f8d4796a57
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue