mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
fix for clipboard crashing (bug #35954)
This commit is contained in:
parent
857f0905f7
commit
8185e12801
@ -101,14 +101,16 @@ void __gtk_selection_target_list_remove (GtkWidget *widget, GdkAtom selection)
|
||||
if (sellist->selection == selection) {
|
||||
gtk_target_list_unref (sellist->list);
|
||||
g_free (sellist);
|
||||
tmp_list2 = tmp_list->next;
|
||||
g_list_remove_link(lists, tmp_list);
|
||||
if (tmp_list2)
|
||||
tmp_list = tmp_list2->prev;
|
||||
tmp_list->data = nsnull;
|
||||
tmp_list2 = tmp_list->prev;
|
||||
lists = g_list_remove_link(lists, tmp_list);
|
||||
g_list_free_1(tmp_list);
|
||||
tmp_list = tmp_list2;
|
||||
}
|
||||
if (tmp_list)
|
||||
tmp_list = tmp_list->next;
|
||||
}
|
||||
gtk_object_set_data(GTK_OBJECT(widget), gtk_selection_handler_key, lists);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user