[farsight2/master] Fix small leaks
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:20:53 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 3 +++
gst/fsrtpconference/fs-rtp-stream.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 20f6d0b..6012811 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -527,6 +527,9 @@ fs_rtp_session_finalize (GObject *object)
if (self->priv->current_send_codec)
fs_codec_destroy (self->priv->current_send_codec);
+ if (self->priv->requested_send_codec)
+ fs_codec_destroy (self->priv->requested_send_codec);
+
parent_class->finalize (object);
}
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index a8eff07..b675211 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -760,7 +760,12 @@ fs_rtp_stream_maybe_emit_codecs_changed (FsRtpStream *stream,
g_object_get (othersubstream, "codec", &othercodec, NULL);
if (othercodec && ! fs_codec_are_equal (codec, othercodec))
+ {
+ fs_codec_destroy (othercodec);
break;
+ }
+
+ fs_codec_destroy (othercodec);
}
}
@@ -770,4 +775,6 @@ fs_rtp_stream_maybe_emit_codecs_changed (FsRtpStream *stream,
g_idle_add (_idle_emit_recv_codecs_changed, stream);
FS_RTP_SESSION_UNLOCK (stream->priv->session);
+
+ fs_codec_destroy (codec);
}
--
1.5.6.5
More information about the farsight-commits
mailing list