mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
player: Don't leak wrapped video info
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1373 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2881>
This commit is contained in:
parent
23c438fdbc
commit
de470d0932
1 changed files with 13 additions and 1 deletions
|
@ -148,10 +148,22 @@ gst_player_video_info_init (G_GNUC_UNUSED GstPlayerVideoInfo * info)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_player_video_info_finalize (GObject * object)
|
||||||
|
{
|
||||||
|
GstPlayerVideoInfo *info = GST_PLAYER_VIDEO_INFO (object);
|
||||||
|
|
||||||
|
g_clear_object (&info->info);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (gst_player_video_info_parent_class)->finalize (object);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_player_video_info_class_init (G_GNUC_UNUSED GstPlayerVideoInfoClass * klass)
|
gst_player_video_info_class_init (G_GNUC_UNUSED GstPlayerVideoInfoClass * klass)
|
||||||
{
|
{
|
||||||
/* nothing to do here */
|
GObjectClass *gobject_class = (GObjectClass *) klass;
|
||||||
|
|
||||||
|
gobject_class->finalize = gst_player_video_info_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue