mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
ext/dirac/gstdiracenc.cc: Fix some memleaks.
Original commit message from CVS: * ext/dirac/gstdiracenc.cc: Fix some memleaks.
This commit is contained in:
parent
4aeacb6dbd
commit
f99e89d0c5
2 changed files with 8 additions and 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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue