[Telepathy-commits] [telepathy-gabble/master] GabbleMediaChannel: fix coding style, and don't leak name if content is not MediaRtp
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Feb 26 05:09:38 PST 2009
---
src/media-channel.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/media-channel.c b/src/media-channel.c
index 772cb58..83a2001 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -2341,12 +2341,16 @@ create_stream_from_content (GabbleMediaChannel *chan, GabbleJingleContent *c)
gchar *nat_traversal;
gboolean locally_created;
- g_object_get (c, "name", &name, "media-type", &type,
- "locally-created", &locally_created, NULL);
+ g_object_get (c,
+ "name", &name,
+ "media-type", &type,
+ "locally-created", &locally_created,
+ NULL);
if (G_OBJECT_TYPE (c) != GABBLE_TYPE_JINGLE_MEDIA_RTP)
{
DEBUG ("ignoring non MediaRtp content '%s'", name);
+ g_free (name);
return NULL;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list