Sat, 28 Jul 2012 19:34:15 +0200
Gadu-Gadu: disable avatars support for buddies. Fixes #15226
| ChangeLog | file | annotate | diff | comparison | revisions | |
| libpurple/protocols/gg/gg.c | file | annotate | diff | comparison | revisions |
--- a/ChangeLog Sun Jul 22 19:52:09 2012 -0400 +++ b/ChangeLog Sat Jul 28 19:34:15 2012 +0200 @@ -4,6 +4,10 @@ Alien hatchery: * No changes + Gadu-Gadu: + * Fix a crash at startup with large contact list. Avatar support for + buddies will be disabled till 3.0.0. (#15226, #14305) + MSN: * Fix a crash when removing a user before its icon is loaded. (Mark Barfield) (#15217)
--- a/libpurple/protocols/gg/gg.c Sun Jul 22 19:52:09 2012 -0400 +++ b/libpurple/protocols/gg/gg.c Sat Jul 28 19:34:15 2012 +0200 @@ -47,6 +47,8 @@ #include "buddylist.h" #include "gg-utils.h" +#define DISABLE_AVATARS 1 + static PurplePlugin *my_protocol = NULL; /* Prototypes */ @@ -903,6 +905,8 @@ /* ----- INTERNAL CALLBACKS --------------------------------------------- */ /* ---------------------------------------------------------------------- */ +#if !DISABLE_AVATARS + struct gg_fetch_avatar_data { PurpleConnection *gc; @@ -1037,6 +1041,8 @@ g_free(bigavatar); } +#endif + /** * Try to update avatar of the buddy. * @@ -1045,6 +1051,10 @@ */ static void ggp_update_buddy_avatar(PurpleConnection *gc, uin_t uin) { +#if DISABLE_AVATARS + purple_debug_warning("gg", "ggp_update_buddy_avatar: disabled, please " + "update to 3.0.0, when available\n"); +#else gchar *avatarurl; PurpleUtilFetchUrlData *url_data; @@ -1058,6 +1068,7 @@ gg_get_avatar_url_cb, gc); g_free(avatarurl); +#endif } /**