[gtk] video: Fix memory leak



commit 1f82697e990c8b46cbe528e14a01cb26e9958322
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Sun May 13 08:23:53 2018 +0530

    video: Fix memory leak

 gtk/gtkvideo.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkvideo.c b/gtk/gtkvideo.c
index 3756d03bac..0281fbc230 100644
--- a/gtk/gtkvideo.c
+++ b/gtk/gtkvideo.c
@@ -188,6 +188,7 @@ gtk_video_dispose (GObject *object)
   gtk_video_set_media_stream (self, NULL);
 
   g_clear_pointer (&self->box, gtk_widget_unparent);
+  g_clear_object (&self->file);
 
   G_OBJECT_CLASS (gtk_video_parent_class)->dispose (object);
 }


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