From 3eba30d5099619855bb5ed758b870a51cecb8c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 2 Apr 2009 13:05:11 +0200 Subject: [PATCH] jp2enc: Unref peer caps after usage to fix a memory leak --- ext/jp2k/gstjasperenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/jp2k/gstjasperenc.c b/ext/jp2k/gstjasperenc.c index fbd4fd576c..47818eb3cd 100644 --- a/ext/jp2k/gstjasperenc.c +++ b/ext/jp2k/gstjasperenc.c @@ -193,6 +193,7 @@ gst_jasper_enc_set_src_caps (GstJasperEnc * enc) break; } } + gst_caps_unref (peercaps); } /* enumerated colourspace */