From f3e66bd80d05cbdf216a22cd77fd0b577a9d4e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 2 Sep 2012 00:04:18 +0100 Subject: [PATCH] spc: don't leak buffer in case of an init error --- ext/spc/gstspc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index b6766d7b60..584e225267 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);