summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-11-26 16:50:53 (GMT)
committerBenjamin Otte <otte@redhat.com>2011-11-26 19:46:26 (GMT)
commit512ac214c68d7806bfab05f5311007169892d914 (patch)
tree4ce20e89a3b8cc1aa0642b5d8ca18c0d893b9d3c
parent32c08de08cb9c51b46ff76a9e2a899aadc71aa91 (diff)
downloadgtk+-512ac214c68d7806bfab05f5311007169892d914.zip
gtk+-512ac214c68d7806bfab05f5311007169892d914.tar.xz
a11y: Fix crash in treeview
This is a band-aid fix. The master branch has a complete rework of the treeview a11y code. Let's hope this will cause most crashes to magically disappear. This code has been indexing by random memory on the stack for a long while and things didn't crash, so let's hope for the best. https://bugzilla.gnome.org/show_bug.cgi?id=663322 https://bugzilla.gnome.org/show_bug.cgi?id=664137
-rw-r--r--gtk/a11y/gtktreeviewaccessible.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index b2ca9ba..a8e4014 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -3275,8 +3275,9 @@ refresh_cell_index (GtkCellAccessible *cell)
return;
cell_info_get_index (tree_view, info, &index);
+ g_hash_table_steal (accessible->cell_info_by_index, &cell->index);
cell->index = index;
- g_hash_table_insert (accessible->cell_info_by_index, &index, info);
+ g_hash_table_insert (accessible->cell_info_by_index, &cell->index, info);
}
static void