org.guifications.plugins: 1b414c648f486e3fee880dae2953ab6aa83e691d
nosnilmot at guifications.org
nosnilmot at guifications.org
Tue Mar 11 20:45:06 CDT 2008
-----------------------------------------------------------------
Revision: 1b414c648f486e3fee880dae2953ab6aa83e691d
Ancestor: 3b2816a0447e73551fa506262639525e97c5d880
Author: nosnilmot at guifications.org
Date: 2008-03-12T01:39:59
Branch: org.guifications.plugins
Modified files:
irc-more/irc-more.c
ChangeLog:
Fix a memory leak, I think. Pointers still confuse me, but at least
valgrind no longer complains
-----------------------------------------------------------------
This revision's diffstat output:
irc-more.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
-------------- next part --------------
============================================================
--- irc-more/irc-more.c 6ca1b130c8f53bdbcbf4270c4f6c6bb923de0bd8
+++ irc-more/irc-more.c e3b3af122e1980010d29acf1afad17619d8a4b63
@@ -177,7 +177,7 @@ irc_sending_text(PurpleConnection *gc, c
irc_sending_text(PurpleConnection *gc, char **msg, gpointer null)
{
PurpleAccount *account = purple_connection_get_account(gc);
- char **old = msg;
+ char *old = *msg;
if (MATCHES("QUIT ")) {
char *message = strchr(*msg, ':');
@@ -198,8 +198,8 @@ irc_sending_text(PurpleConnection *gc, c
*version = '\0';
*msg = g_strdup_printf("%s:\001VERSION %s\001\r\n", *msg, CTCP_REPLY);
}
- if (msg != old)
- g_free(*old);
+ if (*msg != old)
+ g_free(old);
}
static gboolean
More information about the Plugins-commits
mailing list