Initial version of CrossReport program.
[fedora-mingw.git] / gtk2 / gail-leaks.patch
1 diff -up gtk+-2.14.2/modules/other/gail/gailcell.c.gail-leaks gtk+-2.14.2/modules/other/gail/gailcell.c
2 --- gtk+-2.14.2/modules/other/gail/gailcell.c.gail-leaks        2008-09-19 00:55:50.000000000 -0400
3 +++ gtk+-2.14.2/modules/other/gail/gailcell.c   2008-09-19 00:56:24.000000000 -0400
4 @@ -118,6 +118,7 @@ gail_cell_destroyed (GtkWidget       *wi
5     * GtkWidget. We set the  pointer location to NULL;
6     */
7    cell->widget = NULL;
8 +  g_signal_handlers_disconnect_by_func (widget, gail_cell_destroyed, cell);
9  }
10  
11  static void
12 diff -up gtk+-2.14.2/modules/other/gail/gailtreeview.c.gail-leaks gtk+-2.14.2/modules/other/gail/gailtreeview.c
13 --- gtk+-2.14.2/modules/other/gail/gailtreeview.c.gail-leaks    2008-09-19 00:55:02.000000000 -0400
14 +++ gtk+-2.14.2/modules/other/gail/gailtreeview.c       2008-09-19 00:55:39.000000000 -0400
15 @@ -3667,12 +3667,12 @@ static gboolean
16  garbage_collect_cell_data (gpointer data)
17  {
18        GailTreeView *tree_view;
19 -      GList *temp_list;
20 +      GList *temp_list, *list;
21        GailTreeViewCellInfo *cell_info;
22  
23        g_assert (GAIL_IS_TREE_VIEW (data));
24        tree_view = (GailTreeView *)data;
25 -      temp_list = g_list_copy (tree_view->cell_data);
26 +      list = g_list_copy (tree_view->cell_data);
27  
28        tree_view->garbage_collection_pending = FALSE;
29        if (tree_view->idle_garbage_collect_id != 0) 
30 @@ -3682,6 +3682,7 @@ garbage_collect_cell_data (gpointer data
31        }
32  
33        /* Must loop through them all */
34 +      temp_list = list;
35        while (temp_list != NULL)
36        {
37            cell_info = temp_list->data;
38 @@ -3696,7 +3697,7 @@ garbage_collect_cell_data (gpointer data
39           }
40            temp_list = temp_list->next;
41        }
42 -      g_list_free (temp_list);
43 +      g_list_free (list);
44  
45        return tree_view->garbage_collection_pending;
46  }