projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f15f618
)
Have spi_dbus_get_path check for NULL
author
Mike Gorse
<mgorse@boston.site>
Tue, 29 Apr 2008 17:03:28 +0000
(13:03 -0400)
committer
Mike Gorse
<mgorse@boston.site>
Tue, 29 Apr 2008 17:03:28 +0000
(13:03 -0400)
Fix deregister_object to pass a pointer to g_hash_remove
libspi/dbus.c
patch
|
blob
|
history
diff --git
a/libspi/dbus.c
b/libspi/dbus.c
index
9d1800c
..
8541077
100644
(file)
--- a/
libspi/dbus.c
+++ b/
libspi/dbus.c
@@
-31,7
+31,7
@@
static guint objindex;
static void
deregister_object (gpointer obj)
{
- g_hash_table_remove (path2ptr, obj);
+ g_hash_table_remove (path2ptr,
&
obj);
}
static guint
@@
-86,6
+86,7
@@
spi_dbus_get_object (const char *path)
gchar *
spi_dbus_get_path (AtkObject * obj)
{
+ if (!obj) return NULL;
guint index = (guint) g_object_get_data (G_OBJECT (obj), "dbus-id");
if (!index)
index = register_object (obj);