gtk+ r21440 - branches/gtk-2-14/modules/other/gail
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21440 - branches/gtk-2-14/modules/other/gail
- Date: Fri, 19 Sep 2008 04:45:54 +0000 (UTC)
Author: matthiasc
Date: Fri Sep 19 04:45:53 2008
New Revision: 21440
URL: http://svn.gnome.org/viewvc/gtk+?rev=21440&view=rev
Log:
Plug a memory leak
Modified:
branches/gtk-2-14/modules/other/gail/ChangeLog
branches/gtk-2-14/modules/other/gail/gailtreeview.c
Modified: branches/gtk-2-14/modules/other/gail/gailtreeview.c
==============================================================================
--- branches/gtk-2-14/modules/other/gail/gailtreeview.c (original)
+++ branches/gtk-2-14/modules/other/gail/gailtreeview.c Fri Sep 19 04:45:53 2008
@@ -3667,12 +3667,12 @@
garbage_collect_cell_data (gpointer data)
{
GailTreeView *tree_view;
- GList *temp_list;
+ GList *temp_list, *list;
GailTreeViewCellInfo *cell_info;
g_assert (GAIL_IS_TREE_VIEW (data));
tree_view = (GailTreeView *)data;
- temp_list = g_list_copy (tree_view->cell_data);
+ list = g_list_copy (tree_view->cell_data);
tree_view->garbage_collection_pending = FALSE;
if (tree_view->idle_garbage_collect_id != 0)
@@ -3682,6 +3682,7 @@
}
/* Must loop through them all */
+ temp_list = list;
while (temp_list != NULL)
{
cell_info = temp_list->data;
@@ -3696,7 +3697,7 @@
}
temp_list = temp_list->next;
}
- g_list_free (temp_list);
+ g_list_free (list);
return tree_view->garbage_collection_pending;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]