[clutter-gst/clutter-gst-3.0] video-sink: fix overlays memory leak on destruction
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: fix overlays memory leak on destruction
- Date: Sun, 18 Dec 2016 16:26:06 +0000 (UTC)
commit 3e890b6f08e08b603f4d85700f8c3bea419973bd
Author: Fabrice Bellet <fabrice bellet info>
Date: Sun Dec 18 16:25:10 2016 +0000
video-sink: fix overlays memory leak on destruction
clutter-gst/clutter-gst-video-sink.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index d62be46..6281eb3 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -2222,6 +2222,12 @@ clutter_gst_video_sink_dispose (GObject *object)
priv->renderers = NULL;
}
+ if (priv->overlays)
+ {
+ g_boxed_free (CLUTTER_GST_TYPE_OVERLAYS, priv->overlays);
+ priv->overlays = NULL;
+ }
+
G_OBJECT_CLASS (clutter_gst_video_sink_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]