summaryrefslogtreecommitdiffstats
path: root/glib/dbus-gobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/dbus-gobject.c')
-rw-r--r--glib/dbus-gobject.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/glib/dbus-gobject.c b/glib/dbus-gobject.c
index 0168697e..80f766c5 100644
--- a/glib/dbus-gobject.c
+++ b/glib/dbus-gobject.c
@@ -280,13 +280,10 @@ handle_introspect (DBusConnection *connection,
GString *xml;
unsigned int i;
DBusMessage *ret;
- char **path;
char **children;
- if (!dbus_message_get_path_decomposed (message, &path))
- g_error ("Out of memory");
-
- if (!dbus_connection_list_registered (connection, (const char**) path,
+ if (!dbus_connection_list_registered (connection,
+ dbus_message_get_path (message),
&children))
g_error ("Out of memory");
@@ -318,7 +315,6 @@ handle_introspect (DBusConnection *connection,
g_string_free (xml, TRUE);
- dbus_free_string_array (path);
dbus_free_string_array (children);
return DBUS_HANDLER_RESULT_HANDLED;
@@ -548,22 +544,16 @@ dbus_connection_register_g_object (DBusConnection *connection,
const char *at_path,
GObject *object)
{
- char **split;
-
g_return_if_fail (connection != NULL);
g_return_if_fail (at_path != NULL);
g_return_if_fail (G_IS_OBJECT (object));
- split = _dbus_gutils_split_path (at_path);
-
if (!dbus_connection_register_object_path (connection,
- (const char**) split,
+ at_path,
&gobject_dbus_vtable,
object))
g_error ("Failed to register GObject with DBusConnection");
- g_strfreev (split);
-
/* FIXME set up memory management (so we break the
* registration if object or connection vanishes)
*/