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
This commit is contained in:
Matthew Waters 2015-04-28 20:46:52 +10:00 committed by Tim-Philipp Müller
parent dc36647d78
commit 84b61ad4d5

View file

@ -1069,7 +1069,6 @@ _gl_mem_copy (GstGLMemory * src, gssize offset, gssize size)
if (dest == NULL) { if (dest == NULL) {
GST_WARNING ("Could not copy GL Memory"); GST_WARNING ("Could not copy GL Memory");
gst_memory_unref ((GstMemory *) dest);
goto done; goto done;
} }