Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_picture.c @ 23090:49982266aa0f
Fix a double-free in the yahoo profile/icon handling. This is from a downstream
Debian patch that has apparently been around forever, wasn't submitted to us.
Fixes #5889.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 22 May 2008 18:01:58 +0000 |
parents | 3f9877080462 |
children | e56831d0329a |
comparison
equal
deleted
inserted
replaced
23089:815caea3bdd0 | 23090:49982266aa0f |
---|---|
135 "Mozilla/4.0 (compatible; MSIE 5.0)", FALSE, | 135 "Mozilla/4.0 (compatible; MSIE 5.0)", FALSE, |
136 yahoo_fetch_picture_cb, data); | 136 yahoo_fetch_picture_cb, data); |
137 if (url_data != NULL) { | 137 if (url_data != NULL) { |
138 yd = gc->proto_data; | 138 yd = gc->proto_data; |
139 yd->url_datas = g_slist_prepend(yd->url_datas, url_data); | 139 yd->url_datas = g_slist_prepend(yd->url_datas, url_data); |
140 } else { | |
141 g_free(data->who); | |
142 g_free(data); | |
143 } | 140 } |
144 } else if (who && send_icon_info) { | 141 } else if (who && send_icon_info) { |
145 yahoo_send_picture_info(gc, who); | 142 yahoo_send_picture_info(gc, who); |
146 } | 143 } |
147 } | 144 } |