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 | |
parent | 4aeacb6dbd110631a421eda83c78bcfdacf780cd (diff) |
ext/dirac/gstdiracenc.cc: Fix some memleaks.
Original commit message from CVS:
* ext/dirac/gstdiracenc.cc: Fix some memleaks.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/dirac/gstdiracenc.cc | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2008-08-30 David Schleef <ds@schleef.org> + + * ext/dirac/gstdiracenc.cc: Fix some memleaks. + 2008-08-29 David Schleef <ds@schleef.org> * ext/dirac/gstdiracenc.cc: Fix EOS handling. Clean up at 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; |