projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f823004
)
Fix a crash when calling an object from a disposed application
author
Mike Gorse
<mgorse@novell.com>
Thu, 30 Dec 2010 11:33:56 +0000
(06:33 -0500)
committer
Mike Gorse
<mgorse@novell.com>
Thu, 30 Dec 2010 11:33:56 +0000
(06:33 -0500)
atspi/atspi-misc.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-misc.c
b/atspi/atspi-misc.c
index
d8feb32
..
23e3920
100644
(file)
--- a/
atspi/atspi-misc.c
+++ b/
atspi/atspi-misc.c
@@
-1005,6
+1005,13
@@
_atspi_dbus_call (gpointer obj, const char *interface, const char *method, GErro
DBusError err;
AtspiObject *aobj = ATSPI_OBJECT (obj);
+ if (!aobj->app || !aobj->app->bus)
+ {
+ g_set_error_literal (error, ATSPI_ERROR, ATSPI_ERROR_APPLICATION_GONE,
+ _("The application no longer exists"));
+ return FALSE;
+ }
+
va_start (args, type);
dbus_error_init (&err);
retval = dbind_method_call_reentrant_va (aobj->app->bus, aobj->app->bus_name,