diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-09-02 00:04:18 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-02 00:04:18 +0100 |
commit | f3e66bd80d05cbdf216a22cd77fd0b577a9d4e6d (patch) | |
tree | f138f8835ee2405220aaa1840026ef3cde5a2a91 /ext/spc | |
parent | 1d384422e05234875b7147cf093075b50eb2e3cc (diff) | |
download | gstreamer-plugins-bad-f3e66bd80d05cbdf216a22cd77fd0b577a9d4e6d.tar.gz |
spc: don't leak buffer in case of an init error
Diffstat (limited to 'ext/spc')
-rw-r--r-- | ext/spc/gstspc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index b6766d7b6..584e22526 100644 --- a/ext/spc/gstspc.c +++ b/ext/spc/gstspc.c @@ -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); |