/pidgin/main: 14555e001a59: Fix leak in previous commit.

Elliott Sales de Andrade <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 14555e001a592bfaa9c5e54d4cb03924f8ba2517
Author:	 Elliott Sales de Andrade <[email protected]>
Date:	 2014-11-15 02:03 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/14555e001a59

Description:

Fix leak in previous commit.

Refs #13727. Thanks TypoNAM on IRC.

diffstat:

 libpurple/protocols/irc/irc.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/protocols/irc/irc.c b/libpurple/protocols/irc/irc.c
--- a/libpurple/protocols/irc/irc.c
+++ b/libpurple/protocols/irc/irc.c
@@ -82,6 +82,7 @@ static void irc_view_motd(PurplePluginAc
 	body = g_strdup_printf("<span style=\"font-family: monospace;\">%s</span>", irc->motd->str);
 	purple_notify_formatted(gc, title, title, NULL, body, NULL, NULL);
 	g_free(title);
+	g_free(body);
 }
 
 static int do_send(struct irc_conn *irc, const char *buf, gsize len)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.