[gtk/f16c.msvc: 41/61] media: Fix a memory leak




commit 163f517115c406739a8815d94f14a279e7b3b9df
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 10 09:01:09 2021 -0400

    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
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]