diff options
author | David Schleef <ds@schleef.org> | 2008-08-30 20:22:01 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2008-08-30 20:22:01 +0000 |
commit | f99e89d0c59ccb7ea1c4609fc2d0d7a70cf39d68 (patch) | |
tree | d5113ae5a3b722535d35faed4679a89829803cd9 /ext/dirac | |
parent | 4aeacb6dbd110631a421eda83c78bcfdacf780cd (diff) | |
download | gstreamer-plugins-bad-f99e89d0c59ccb7ea1c4609fc2d0d7a70cf39d68.tar.gz |
ext/dirac/gstdiracenc.cc: Fix some memleaks.
Original commit message from CVS:
* ext/dirac/gstdiracenc.cc: Fix some memleaks.
Diffstat (limited to 'ext/dirac')
-rw-r--r-- | ext/dirac/gstdiracenc.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index 71baeb851..605f6f3ae 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; |