spc: don't leak buffer in case of an init error

This commit is contained in:
Tim-Philipp Müller 2012-09-02 00:04:18 +01:00
parent 1d384422e0
commit f3e66bd80d

View file

@ -489,6 +489,7 @@ spc_setup (GstSpcDec * spc)
if (OSPC_Init (map.data, map.size) != 0) {
gst_buffer_unmap (spc->buf, &map);
return FALSE;
}
gst_buffer_unmap (spc->buf, &map);