vtdec: fix refcount error in error handling
authorIlya Konstantinov <ilya.konstantinov@gmail.com>
Mon, 29 Jun 2015 09:40:55 +0000 (12:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 7 Jul 2015 17:18:50 +0000 (20:18 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=751641

sys/applemedia/vtdec.c

index d77c4f1..543f1c4 100644 (file)
@@ -606,9 +606,6 @@ sample_error:
   GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
       ("CMSampleBufferCreate returned %d", (int) status));
 
-  if (bbuf)
-    CFRelease (bbuf);
-
   goto out;
 }