pidgin.vv: 1b65f8b9: Plug some memory leaks related to transp...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Wed Mar 18 22:35:50 EDT 2009
-----------------------------------------------------------------
Revision: 1b65f8b9dc7034e2294c475082277484e878c7a2
Ancestor: 74d8e00c6f3099fa13e7fd5bd6d732eebec4eabe
Author: maiku at soc.pidgin.im
Date: 2009-03-19T00:58:55
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/1b65f8b9dc7034e2294c475082277484e878c7a2
Modified files:
libpurple/protocols/jabber/jingle/content.c
libpurple/protocols/jabber/jingle/iceudp.c
libpurple/protocols/jabber/jingle/rawudp.c
libpurple/protocols/jabber/jingle/rtp.c
ChangeLog:
Plug some memory leaks related to transports.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/content.c 695e8d2c38a43b7c0a86e7c026eb7170ebc376f0
+++ libpurple/protocols/jabber/jingle/content.c 5f490424b3559de372e98419ee84f3d351dea082
@@ -433,6 +433,7 @@ jingle_content_to_xml_internal(JingleCon
transport = jingle_content_get_transport(content);
jingle_transport_to_xml(transport, node, action);
+ g_object_unref(transport);
}
return node;
============================================================
--- libpurple/protocols/jabber/jingle/iceudp.c dc94d05ea55e9125dd86c56b86bcf81f1aa3b7c0
+++ libpurple/protocols/jabber/jingle/iceudp.c bdd8d150b8759ea0f969813b714e518768900cd8
@@ -185,6 +185,8 @@ jingle_iceudp_finalize (GObject *iceudp)
{
/* JingleIceUdpPrivate *priv = JINGLE_ICEUDP_GET_PRIVATE(iceudp); */
purple_debug_info("jingle","jingle_iceudp_finalize\n");
+
+ G_OBJECT_CLASS(parent_class)->finalize(iceudp);
}
static void
============================================================
--- libpurple/protocols/jabber/jingle/rawudp.c cd733b06caf0bc4cc4532cfa857f0808896499ba
+++ libpurple/protocols/jabber/jingle/rawudp.c 10710e6f3c56be9f2b5b3e4899a2f945d5d7c05b
@@ -157,6 +157,8 @@ jingle_rawudp_finalize (GObject *rawudp)
{
/* JingleRawUdpPrivate *priv = JINGLE_RAWUDP_GET_PRIVATE(rawudp); */
purple_debug_info("jingle","jingle_rawudp_finalize\n");
+
+ G_OBJECT_CLASS(parent_class)->finalize(rawudp);
}
static void
============================================================
--- libpurple/protocols/jabber/jingle/rtp.c 83221e9abd29bff12665fe8dc8917623d76a4e3c
+++ libpurple/protocols/jabber/jingle/rtp.c c26043381e5451595bc2bf0c890a603f72137aa6
@@ -135,6 +135,8 @@ jingle_rtp_finalize (GObject *rtp)
g_free(priv->media_type);
g_free(priv->ssrc);
+
+ G_OBJECT_CLASS(parent_class)->finalize(rtp);
}
static void
@@ -370,6 +372,7 @@ jingle_rtp_ready_cb(PurpleMedia *media,
JINGLE_TYPE_RAWUDP : JINGLE_TYPE_ICEUDP,
0, candidates));
g_list_free(candidates);
+ g_object_unref(oldtransport);
jingle_content_set_pending_transport(content, transport);
jingle_content_accept_transport(content);
@@ -461,6 +464,7 @@ jingle_rtp_init_media(JingleContent *con
transmitter = "nice";
else
transmitter = "notransmitter";
+ g_object_unref(transport);
is_audio = !strcmp(media_type, "audio");
More information about the Commits
mailing list