# HG changeset patch # User Mike Ruprecht # Date 1233826867 0 # Node ID 4a245ffb4051586fa329e6daa09755ac911e2400 # Parent 84ea076483778ef85f23084745562a79fb70affe Plug memory leak. diff -r 84ea07648377 -r 4a245ffb4051 libpurple/protocols/jabber/jingle/rtp.c --- a/libpurple/protocols/jabber/jingle/rtp.c Thu Feb 05 09:36:23 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/rtp.c Thu Feb 05 09:41:07 2009 +0000 @@ -189,18 +189,18 @@ jingle_rtp_candidates_to_transport(JingleSession *session, GType type, guint generation, GList *candidates) { if (type == JINGLE_TYPE_RAWUDP) { - gchar *id = jabber_get_next_id(jingle_session_get_js(session)); JingleTransport *transport = jingle_transport_create(JINGLE_TRANSPORT_RAWUDP); JingleRawUdpCandidate *rawudp_candidate; for (; candidates; candidates = g_list_next(candidates)) { PurpleMediaCandidate *candidate = candidates->data; - id = jabber_get_next_id(jingle_session_get_js(session)); + gchar *id = jabber_get_next_id( + jingle_session_get_js(session)); rawudp_candidate = jingle_rawudp_candidate_new(id, generation, candidate->component_id, candidate->ip, candidate->port); jingle_rawudp_add_local_candidate(JINGLE_RAWUDP(transport), rawudp_candidate); + g_free(id); } - g_free(id); return transport; } else if (type == JINGLE_TYPE_ICEUDP) { JingleTransport *transport = jingle_transport_create(JINGLE_TRANSPORT_ICEUDP);