summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-10 09:01:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-04-10 09:02:59 -0400
commit187072c3faf984b914c498439fa34eba8d6e6160 (patch)
tree288ba4c90aaef26b705aa296455e15019d22f655
parentd15b0afca996532130c1602a7d02659731c329df (diff)
downloadgtk+-187072c3faf984b914c498439fa34eba8d6e6160.tar.gz
media: Fix a memory leak
This was introduced in e7dc82fa32f9c115607.
-rw-r--r--modules/media/gtkgstmediafile.c2
1 files changed, 2 insertions, 0 deletions
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
{