summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsession.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-12-12 12:11:53 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-12-12 12:11:53 +0000
commit4e481affe2d802842444d735cdd1fb7c2e351d37 (patch)
tree03a69fd03da08d35ff81a79ae246b3034c9f3f76 /gst/rtpmanager/rtpsession.c
parent4d9802a3acfaa8a2a9dc04a4009e2b5377dcd89d (diff)
downloadgst-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/rtpsession.c')
-rw-r--r--gst/rtpmanager/rtpsession.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c
index 5cba052b..b29f0037 100644
--- a/gst/rtpmanager/rtpsession.c
+++ b/gst/rtpmanager/rtpsession.c
@@ -323,6 +323,8 @@ rtp_session_finalize (GObject * object)
for (i = 0; i < 32; i++)
g_hash_table_destroy (sess->ssrcs[i]);
+ g_free (sess->bye_reason);
+
g_hash_table_destroy (sess->cnames);
g_object_unref (sess->source);
@@ -1577,6 +1579,7 @@ rtp_session_send_bye (RTPSession * sess, const gchar * reason)
/* we have BYE now */
source->received_bye = TRUE;
/* at least one member wants to send a BYE */
+ g_free (sess->bye_reason);
sess->bye_reason = g_strdup (reason);
sess->stats.avg_rtcp_packet_size = 100;
sess->stats.bye_members = 1;