from Kashyap Desai
fix bug in conversation_delete_proto_data second argument to g_slist_remove() is a pointer to the data, not a GSlist containing a list of such pointers. svn path=/trunk/; revision=14755
This commit is contained in:
parent
06df848879
commit
2facda00c0
|
@ -1114,8 +1114,10 @@ conversation_delete_proto_data(conversation_t *conv, int proto)
|
|||
item = g_slist_find_custom(conv->data_list, (gpointer *)&temp,
|
||||
p_compare);
|
||||
|
||||
if (item != NULL)
|
||||
conv->data_list = g_slist_remove(conv->data_list, item);
|
||||
while(item){
|
||||
conv->data_list = g_slist_remove(conv->data_list, item->data);
|
||||
item=item->next;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue