From f99e89d0c59ccb7ea1c4609fc2d0d7a70cf39d68 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 30 Aug 2008 20:22:01 +0000 Subject: [PATCH] ext/dirac/gstdiracenc.cc: Fix some memleaks. Original commit message from CVS: * ext/dirac/gstdiracenc.cc: Fix some memleaks. --- ChangeLog | 4 ++++ ext/dirac/gstdiracenc.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index ec4ff7ce9c..8b8d24e870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-08-30 David Schleef + + * ext/dirac/gstdiracenc.cc: Fix some memleaks. + 2008-08-29 David Schleef * ext/dirac/gstdiracenc.cc: Fix EOS handling. Clean up at diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index 71baeb8517..605f6f3aeb 100644 --- a/ext/dirac/gstdiracenc.cc +++ b/ext/dirac/gstdiracenc.cc @@ -353,6 +353,9 @@ gst_dirac_enc_finalize (GObject * object) dirac_encoder_close (dirac_enc->encoder); dirac_enc->encoder = NULL; } + if (dirac_enc->srccaps) { + gst_caps_unref (dirac_enc->srccaps); + } G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -856,6 +859,7 @@ gst_dirac_enc_chain (GstPad * pad, GstBuffer * buf) ret = gst_dirac_enc_process (dirac_enc, FALSE); + gst_buffer_unref (buf); gst_object_unref (dirac_enc); return ret;