Gadu-Gadu: disable avatars support for buddies. Fixes #15226 release-2.x.y
authorTomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
Sat, 28 Jul 2012 19:34:15 +0200
branchrelease-2.x.y
changesetdb3a62c8006c pushlog
parent f343f7e1a31f
child 4f8d94fe3913
Gadu-Gadu: disable avatars support for buddies. Fixes #15226
ChangeLog
libpurple/protocols/gg/gg.c
     1.1 --- a/ChangeLog
     1.2 +++ b/ChangeLog
     1.3 @@ -4,6 +4,10 @@
     1.4  	Alien hatchery:
     1.5  	* No changes
     1.6  
     1.7 +	Gadu-Gadu:
     1.8 +	* Fix a crash at startup with large contact list. Avatar support for
     1.9 +	  buddies will be disabled till 3.0.0. (#15226, #14305)
    1.10 +
    1.11  	MSN:
    1.12  	* Fix a crash when removing a user before its icon is loaded. (Mark
    1.13  	  Barfield) (#15217)
     2.1 --- a/libpurple/protocols/gg/gg.c
     2.2 +++ b/libpurple/protocols/gg/gg.c
     2.3 @@ -47,6 +47,8 @@
     2.4  #include "buddylist.h"
     2.5  #include "gg-utils.h"
     2.6  
     2.7 +#define DISABLE_AVATARS 1
     2.8 +
     2.9  static PurplePlugin *my_protocol = NULL;
    2.10  
    2.11  /* Prototypes */
    2.12 @@ -903,6 +905,8 @@
    2.13  /* ----- INTERNAL CALLBACKS --------------------------------------------- */
    2.14  /* ---------------------------------------------------------------------- */
    2.15  
    2.16 +#if !DISABLE_AVATARS
    2.17 +
    2.18  struct gg_fetch_avatar_data
    2.19  {
    2.20  	PurpleConnection *gc;
    2.21 @@ -1037,6 +1041,8 @@
    2.22  	g_free(bigavatar);
    2.23  }
    2.24  
    2.25 +#endif
    2.26 +
    2.27  /**
    2.28   * Try to update avatar of the buddy.
    2.29   *
    2.30 @@ -1045,6 +1051,10 @@
    2.31   */
    2.32  static void ggp_update_buddy_avatar(PurpleConnection *gc, uin_t uin)
    2.33  {
    2.34 +#if DISABLE_AVATARS
    2.35 +	purple_debug_warning("gg", "ggp_update_buddy_avatar: disabled, please "
    2.36 +		"update to 3.0.0, when available\n");
    2.37 +#else
    2.38  	gchar *avatarurl;
    2.39  	PurpleUtilFetchUrlData *url_data;
    2.40  
    2.41 @@ -1058,6 +1068,7 @@
    2.42  			gg_get_avatar_url_cb, gc);
    2.43  
    2.44  	g_free(avatarurl);
    2.45 +#endif
    2.46  }
    2.47  
    2.48  /**