[gnome-menus] libmenu: Make refcounts volatile as g_atomic_* expect



commit 21062503fff272872fdfc5fb468288b1faa85127
Author: Colin Walters <walters verbum org>
Date:   Tue Jun 14 13:25:47 2011 -0400

    libmenu: Make refcounts volatile as g_atomic_* expect

 libmenu/gmenu-tree.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index 08430fc..cdad440 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -78,7 +78,7 @@ G_DEFINE_TYPE (GMenuTree, gmenu_tree, G_TYPE_OBJECT)
 
 struct GMenuTreeItem
 {
-  gint refcount;
+  volatile gint refcount;
 
   GMenuTreeItemType type;
 
@@ -87,7 +87,7 @@ struct GMenuTreeItem
 
 struct GMenuTreeIter
 {
-  gint refcount;
+  volatile gint refcount;
 
   GMenuTreeItem *item;
   GSList        *contents;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]