ext/dirac/gstdiracenc.cc: Fix some memleaks.

Original commit message from CVS:
* ext/dirac/gstdiracenc.cc: Fix some memleaks.
This commit is contained in:
David Schleef 2008-08-30 20:22:01 +00:00
parent 4aeacb6dbd
commit f99e89d0c5
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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;