projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't try to unref an object if atk returned NULL
[platform/core/uifw/at-spi2-atk.git]
/
atk-adaptor
/
adaptors
/
component-adaptor.c
diff --git
a/atk-adaptor/adaptors/component-adaptor.c
b/atk-adaptor/adaptors/component-adaptor.c
index
f477348
..
d74c764
100644
(file)
--- a/
atk-adaptor/adaptors/component-adaptor.c
+++ b/
atk-adaptor/adaptors/component-adaptor.c
@@
-86,7
+86,8
@@
impl_GetAccessibleAtPoint (DBusConnection * bus, DBusMessage * message,
atk_component_ref_accessible_at_point (component, x, y,
(AtkCoordType) coord_type);
reply = spi_object_return_reference (message, child);
- g_object_unref (child);
+ if (child)
+ g_object_unref (child);
return reply;
}