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
parent 17d3a75583
commit 17084a4608

View file

@ -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;
}