Changeset - 59236d962f23
[Not reviewed]
0 2 0
HanzZ - 14 years ago 2011-07-26 23:01:22
hanzz.k@gmail.com
Unref PurpleBuddyIcon -> another leak fixed
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -571,6 +571,7 @@ static std::string getIconHash(PurpleBuddy *m_buddy) {
 
	PurpleBuddyIcon *icon = purple_buddy_icons_find(purple_buddy_get_account(m_buddy), purple_buddy_get_name(m_buddy));
 
	if (icon) {
 
		avatarHash = purple_buddy_icon_get_full_path(icon);
 
		purple_buddy_icon_unref(icon);
 
	}
 

	
 
	if (avatarHash) {
 
@@ -817,6 +818,7 @@ static void *notify_user_info(PurpleConnection *gc, const char *who, PurpleNotif
 
			if (len < 300000 && data) {
 
				photo = Swift::createByteArray(data, len);
 
			}
 
			purple_imgstore_unref(avatar);
 
		}
 
	}
 

	
 
@@ -846,6 +848,7 @@ static void *notify_user_info(PurpleConnection *gc, const char *who, PurpleNotif
 
// 					}
 
// 				}
 
			}
 
			purple_buddy_icon_unref(icon);
 
		}
 
	}
 

	
spectrum/src/sample.cfg
Show inline comments
 
@@ -13,8 +13,8 @@ admin_password=test
 
users_per_backend=10
 
backend=../../backends/libpurple/spectrum_libpurple_backend
 
#backend=../../backends/libircclient-qt/spectrum_libircclient-qt_backend
 
#protocol=prpl-jabber
 
protocol=any
 
protocol=prpl-msn
 
#protocol=any
 
#protocol=prpl-icq
 

	
 
[backend]
0 comments (0 inline, 0 general)