From 17084a4608e21349a502de006210f2df7e9b97a3 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 28 Apr 2015 20:46:52 +1000 Subject: [PATCH] glmemory: remove uneeded unref The call to _gl_mem_alloc_data will unref and NULLify 'dest' for us. We just need to return. https://bugzilla.gnome.org/show_bug.cgi?id=744246 --- gst-libs/gst/gl/gstglmemory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c index 0987e4986b..254e617313 100644 --- a/gst-libs/gst/gl/gstglmemory.c +++ b/gst-libs/gst/gl/gstglmemory.c @@ -1069,7 +1069,6 @@ _gl_mem_copy (GstGLMemory * src, gssize offset, gssize size) if (dest == NULL) { GST_WARNING ("Could not copy GL Memory"); - gst_memory_unref ((GstMemory *) dest); goto done; }