spc: don't leak buffer in case of an init error
This commit is contained in:
parent
1d384422e0
commit
f3e66bd80d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user