[at-spi2-atk] ref an object while adding it to the cache
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] ref an object while adding it to the cache
- Date: Wed, 16 Jun 2010 21:01:18 +0000 (UTC)
commit 1cbc01a702abf35700ce9d7a6fcee9e8e61317c3
Author: Mike Gorse <mgorse novell com>
Date: Wed Jun 16 17:01:16 2010 -0400
ref an object while adding it to the cache
atk-adaptor/adaptors/cache-adaptor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/adaptors/cache-adaptor.c b/atk-adaptor/adaptors/cache-adaptor.c
index f363f8d..4bdb7cb 100644
--- a/atk-adaptor/adaptors/cache-adaptor.c
+++ b/atk-adaptor/adaptors/cache-adaptor.c
@@ -79,6 +79,8 @@ append_cache_item (AtkObject * obj, gpointer data)
const char *name, *desc;
dbus_uint32_t role;
+ g_object_ref (G_OBJECT (obj));
+
set = atk_object_ref_state_set (obj);
{
AtkObject *application, *parent;
@@ -212,6 +214,7 @@ append_cache_item (AtkObject * obj, gpointer data)
}
dbus_message_iter_close_container (iter_array, &iter_struct);
g_object_unref (set);
+ g_object_unref (obj);
}
/*---------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]