pidgin: c99d8035: Use g_strdup to match the subsequent g_f...
datallah at pidgin.im
datallah at pidgin.im
Fri Apr 25 13:56:11 EDT 2008
-----------------------------------------------------------------
Revision: c99d803544a34f515910029e5f26d378843ec9e9
Ancestor: 233fc9c7bbb49b686ad5f5bd820a071c42f79591
Author: datallah at pidgin.im
Date: 2008-04-25T16:08:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c99d803544a34f515910029e5f26d378843ec9e9
Modified files:
libpurple/protocols/irc/msgs.c
ChangeLog:
Use g_strdup to match the subsequent g_free.
-------------- next part --------------
============================================================
--- libpurple/protocols/irc/msgs.c f9874c81d833f53d24add9867978c1dcd61f7cf6
+++ libpurple/protocols/irc/msgs.c ed0919bc4e502981321e955cf3c642e6492fec01
@@ -715,7 +715,7 @@ void irc_msg_invite(struct irc_conn *irc
return;
}
- g_hash_table_insert(components, strdup("channel"), strdup(args[1]));
+ g_hash_table_insert(components, g_strdup("channel"), g_strdup(args[1]));
serv_got_chat_invite(gc, args[1], nick, NULL, components);
g_free(nick);
@@ -980,7 +980,7 @@ void irc_msg_nickused(struct irc_conn *i
if (!args || !args[1])
return;
- newnick = strdup(args[1]);
+ newnick = g_strdup(args[1]);
end = newnick + strlen(newnick) - 1;
/* try fallbacks */
if((*end < '9') && (*end >= '1')) {
More information about the Commits
mailing list