diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-12 05:19:05 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-12 05:19:05 +0000 |
commit | bc3246f14624f96c82beaf94bba12fed77cef872 (patch) | |
tree | 2c0aedc83d3cd88b97f0902199af39b763bd4968 /gst/librfb | |
parent | fc50684825ca09995884d4453c2fedd068ea882c (diff) | |
download | gst-plugins-bad-bc3246f14624f96c82beaf94bba12fed77cef872.tar.gz gst-plugins-bad-bc3246f14624f96c82beaf94bba12fed77cef872.tar.bz2 gst-plugins-bad-bc3246f14624f96c82beaf94bba12fed77cef872.zip |
gst/librfb/gstrfbsrc.c: Free the rfb decoder on finalize. Fixes bug #515721.
Original commit message from CVS:
* gst/librfb/gstrfbsrc.c: (gst_rfb_src_dispose):
Free the rfb decoder on finalize. Fixes bug #515721.
Diffstat (limited to 'gst/librfb')
-rw-r--r-- | gst/librfb/gstrfbsrc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index 0df0555f..b218fceb 100644 --- a/gst/librfb/gstrfbsrc.c +++ b/gst/librfb/gstrfbsrc.c @@ -180,7 +180,11 @@ gst_rfb_src_dispose (GObject * object) GstRfbSrc *src = GST_RFB_SRC (object); g_free (src->host); - rfb_decoder_free (src->decoder); + if (src->decoder) { + rfb_decoder_free (src->decoder); + g_free (src->decoder); + src->decoder = NULL; + } G_OBJECT_CLASS (parent_class)->dispose (object); } |