diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-12-12 12:11:53 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-12-12 12:11:53 +0000 |
commit | 4e481affe2d802842444d735cdd1fb7c2e351d37 (patch) | |
tree | 03a69fd03da08d35ff81a79ae246b3034c9f3f76 /gst/rtpmanager/rtpsource.c | |
parent | 4d9802a3acfaa8a2a9dc04a4009e2b5377dcd89d (diff) | |
download | gst-plugins-bad-4e481affe2d802842444d735cdd1fb7c2e351d37.tar.gz gst-plugins-bad-4e481affe2d802842444d735cdd1fb7c2e351d37.tar.bz2 gst-plugins-bad-4e481affe2d802842444d735cdd1fb7c2e351d37.zip |
gst/rtpmanager/: Fix some leaks.
Original commit message from CVS:
* gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_finalize),
(gst_rtp_bin_set_sdes_string), (gst_rtp_bin_get_sdes_string),
(gst_rtp_bin_handle_message):
* gst/rtpmanager/rtpsession.c: (rtp_session_finalize),
(rtp_session_send_bye):
* gst/rtpmanager/rtpsource.c: (rtp_source_finalize):
Fix some leaks.
Diffstat (limited to 'gst/rtpmanager/rtpsource.c')
-rw-r--r-- | gst/rtpmanager/rtpsource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index 4985bccc..c48c8d0b 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -169,6 +169,7 @@ rtp_source_finalize (GObject * object) { RTPSource *src; GstBuffer *buffer; + gint i; src = RTP_SOURCE_CAST (object); @@ -176,6 +177,9 @@ rtp_source_finalize (GObject * object) gst_buffer_unref (buffer); g_queue_free (src->packets); + for (i = 0; i < 9; i++) + g_free (src->sdes[i]); + g_free (src->bye_reason); G_OBJECT_CLASS (rtp_source_parent_class)->finalize (object); |