From 187072c3faf984b914c498439fa34eba8d6e6160 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Apr 2021 09:01:09 -0400 Subject: media: Fix a memory leak This was introduced in e7dc82fa32f9c115607. --- modules/media/gtkgstmediafile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/media/gtkgstmediafile.c b/modules/media/gtkgstmediafile.c index 930d683d65..b1af467e5a 100644 --- a/modules/media/gtkgstmediafile.c +++ b/modules/media/gtkgstmediafile.c @@ -142,6 +142,8 @@ gtk_gst_media_file_ensure_prepared (GtkGstMediaFile *self) gst_player_media_info_get_video_streams (media_info) != NULL, gst_player_media_info_is_seekable (media_info), FROM_GST_TIME (gst_player_media_info_get_duration (media_info))); + + g_object_unref (media_info); } else { -- cgit v1.2.1