Mercurial > pidgin.yaz
comparison libpurple/notify.c @ 21284:6de09629f091
propagate from branch 'im.pidgin.pidgin.next.minor' (head 0c9637482b845cc65e95a26e144697391c51133f)
to branch 'im.pidgin.pidgin' (head e3a6991e78dac328f13804950fee54dfb8afc3c5)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 10 Nov 2007 04:52:20 +0000 |
parents | 89c7be36fd61 |
children | 93c40e412b54 3f5b0039428b |
comparison
equal
deleted
inserted
replaced
21283:406aa3be6b32 | 21284:6de09629f091 |
---|---|
686 } | 686 } |
687 | 687 |
688 void | 688 void |
689 purple_notify_user_info_remove_last_item(PurpleNotifyUserInfo *user_info) | 689 purple_notify_user_info_remove_last_item(PurpleNotifyUserInfo *user_info) |
690 { | 690 { |
691 user_info->user_info_entries = g_list_remove(user_info->user_info_entries, | 691 GList *last = g_list_last(user_info->user_info_entries); |
692 g_list_last(user_info->user_info_entries)->data); | 692 if (last) { |
693 purple_notify_user_info_entry_destroy(last->data); | |
694 user_info->user_info_entries = g_list_delete_link(user_info->user_info_entries, last); | |
695 } | |
693 } | 696 } |
694 | 697 |
695 void * | 698 void * |
696 purple_notify_uri(void *handle, const char *uri) | 699 purple_notify_uri(void *handle, const char *uri) |
697 { | 700 { |