summaryrefslogtreecommitdiffstats
path: root/ext/jp2k
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-02 13:05:11 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-02 13:05:11 +0200
commit3eba30d5099619855bb5ed758b870a51cecb8c4b (patch)
tree8df7f3af6802ae65e03287c9f107dc0f4c420674 /ext/jp2k
parent031ecef2f53241aeedfcd6be5ed6f4dab0dddf00 (diff)
downloadgst-plugins-bad-3eba30d5099619855bb5ed758b870a51cecb8c4b.tar.gz
gst-plugins-bad-3eba30d5099619855bb5ed758b870a51cecb8c4b.tar.bz2
gst-plugins-bad-3eba30d5099619855bb5ed758b870a51cecb8c4b.zip
jp2enc: Unref peer caps after usage to fix a memory leak
Diffstat (limited to 'ext/jp2k')
-rw-r--r--ext/jp2k/gstjasperenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/jp2k/gstjasperenc.c b/ext/jp2k/gstjasperenc.c
index fbd4fd57..47818eb3 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 */