[at-spi2-atk] atk-adapter: be careful with potential NULL GObjects
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] atk-adapter: be careful with potential NULL GObjects
- Date: Fri, 15 May 2015 22:31:01 +0000 (UTC)
commit 72220192a31df6b297312d82f059e9824e8a4dc3
Author: Christian Hergert <christian hergert me>
Date: Fri May 15 13:07:18 2015 -0700
atk-adapter: be careful with potential NULL GObjects
I've been seeing warnings in my Gtk application for a while due to this.
atk-adaptor/accessible-stateset.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/accessible-stateset.c b/atk-adaptor/accessible-stateset.c
index f82910b..82820de 100644
--- a/atk-adaptor/accessible-stateset.c
+++ b/atk-adaptor/accessible-stateset.c
@@ -185,7 +185,7 @@ spi_atk_state_to_dbus_array (AtkObject * object, dbus_uint32_t * array)
{
AtkStateSet *set = atk_object_ref_state_set (object);
spi_atk_state_set_to_dbus_array (set, array);
- g_object_unref (set);
+ g_clear_object (&set);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]