Changeset 098a75b for protocols/msn
- Timestamp:
- 2015-03-22T13:35:08Z (10 years ago)
- Branches:
- master
- Children:
- b95d03b
- Parents:
- 2dd23da
- git-author:
- dequis <dx@…> (21-03-15 08:26:20)
- git-committer:
- dequis <dx@…> (22-03-15 13:35:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn_util.c
r2dd23da r098a75b 174 174 }; 175 175 176 static void msn_buddy_ask_ yes(void *data)176 static void msn_buddy_ask_free(void *data) 177 177 { 178 178 struct msn_buddy_ask_data *bla = data; 179 180 msn_buddy_list_add(bla->ic, MSN_BUDDY_AL, bla->handle, bla->realname, NULL);181 182 imcb_ask_add(bla->ic, bla->handle, NULL);183 179 184 180 g_free(bla->handle); … … 187 183 } 188 184 185 static void msn_buddy_ask_yes(void *data) 186 { 187 struct msn_buddy_ask_data *bla = data; 188 189 msn_buddy_list_add(bla->ic, MSN_BUDDY_AL, bla->handle, bla->realname, NULL); 190 191 imcb_ask_add(bla->ic, bla->handle, NULL); 192 193 msn_buddy_ask_free(bla); 194 } 195 189 196 static void msn_buddy_ask_no(void *data) 190 197 { … … 193 200 msn_buddy_list_add(bla->ic, MSN_BUDDY_BL, bla->handle, bla->realname, NULL); 194 201 195 g_free(bla->handle); 196 g_free(bla->realname); 197 g_free(bla); 202 msn_buddy_ask_free(bla); 198 203 } 199 204 … … 216 221 "The user %s (%s) wants to add you to his/her buddy list.", 217 222 bu->handle, bu->fullname); 218 imcb_ask(bu->ic, buf, bla, msn_buddy_ask_yes, msn_buddy_ask_no); 223 224 imcb_ask_with_free(bu->ic, buf, bla, msn_buddy_ask_yes, msn_buddy_ask_no, msn_buddy_ask_free); 219 225 } 220 226
Note: See TracChangeset
for help on using the changeset viewer.