mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
spc: don't leak buffer in case of an init error
This commit is contained in:
parent
1d384422e0
commit
f3e66bd80d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue