Mercurial > pidgin.yaz
diff libpurple/protocols/oscar/oscar.c @ 26934:0b97f73fa3d2
correctly NULL terminate all the arrays since that's what gtknotify assumes,
also fixed a memory leak in gmail notification
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 10 May 2009 22:06:08 +0000 |
parents | 0e99b80b54c6 |
children | 9612a2e8db87 e0bcdc2bad7d |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Fri May 08 03:54:58 2009 +0000 +++ b/libpurple/protocols/oscar/oscar.c Sun May 10 22:06:08 2009 +0000 @@ -3571,8 +3571,10 @@ purple_account_get_username(account), emailinfo->domain ? "@" : "", emailinfo->domain ? emailinfo->domain : ""); + const char *tos[2] = { to }; + const char *urls[2] = { emailinfo->url }; purple_notify_emails(gc, emailinfo->nummsgs, FALSE, NULL, NULL, - (const char **)&to, (const char **)&emailinfo->url, NULL, NULL); + tos, urls, NULL, NULL); g_free(to); }