[at-spi2-core] Add another NULL-app check for get_parent



commit 6f05b6bb8943079f71f4ea8d4183478daa1cb6fc
Author: Mike Gorse <mgorse novell com>
Date:   Tue Jan 4 13:11:50 2011 -0600

    Add another NULL-app check for get_parent

 atspi/atspi-accessible.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index aa31965..11cfd8b 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -359,7 +359,7 @@ atspi_accessible_get_parent (AtspiAccessible *obj, GError **error)
 {
   g_return_val_if_fail (obj != NULL, NULL);
 
-  if (!(obj->cached_properties & ATSPI_CACHE_PARENT))
+  if (obj->parent.app && !(obj->cached_properties & ATSPI_CACHE_PARENT))
   {
     DBusMessage *message, *reply;
     DBusMessageIter iter, iter_variant;



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