summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-05-25 14:05:35 +0200
committerBastien Nocera <hadess@hadess.net>2018-06-14 13:40:32 +0200
commit76254280dedb94c3216edd2e7d066c53f6dd90b2 (patch)
treedf0935cdc48ffaa772162884ffc1abef27b46a4e
parentc43ab1d08f48b54ad791658169590bb759effeab (diff)
downloadtotem-76254280dedb94c3216edd2e7d066c53f6dd90b2.tar.gz
gst: Fix GstMemory memory leak
Spotted by denniswbb@web.de Closes: #177
-rw-r--r--src/gst/totem-gst-pixbuf-helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gst/totem-gst-pixbuf-helpers.c b/src/gst/totem-gst-pixbuf-helpers.c
index 99cdae97e..081bba39e 100644
--- a/src/gst/totem-gst-pixbuf-helpers.c
+++ b/src/gst/totem-gst-pixbuf-helpers.c
@@ -105,6 +105,7 @@ totem_gst_playbin_get_frame (GstElement *play)
GST_ROUND_UP_4 (outwidth * 3), destroy_pixbuf, sample);
gst_memory_unmap (memory, &info);
+ gst_memory_unref (memory);
done:
if (!pixbuf) {