| 1235 { |
1235 { |
| 1236 g_strchug(ssparts[i]); |
1236 g_strchug(ssparts[i]); |
| 1237 if (purple_str_has_prefix(ssparts[i], "terminated")) |
1237 if (purple_str_has_prefix(ssparts[i], "terminated")) |
| 1238 { |
1238 { |
| 1239 purple_debug_info("simple", "Subscription expired!"); |
1239 purple_debug_info("simple", "Subscription expired!"); |
| 1240 g_free(b->dialog->ourtag); |
1240 if (b->dialog) |
| 1241 g_free(b->dialog->theirtag); |
1241 { |
| 1242 g_free(b->dialog->callid); |
1242 g_free(b->dialog->ourtag); |
| 1243 g_free(b->dialog); |
1243 g_free(b->dialog->theirtag); |
| 1244 b->dialog = NULL; |
1244 g_free(b->dialog->callid); |
| |
1245 g_free(b->dialog); |
| |
1246 b->dialog = NULL; |
| |
1247 } |
| 1245 |
1248 |
| 1246 purple_prpl_got_user_status(sip->account, from, "offline", NULL); |
1249 purple_prpl_got_user_status(sip->account, from, "offline", NULL); |
| 1247 break; |
1250 break; |
| 1248 } |
1251 } |
| 1249 i++; |
1252 i++; |