summaryrefslogtreecommitdiffstats
path: root/glib/dbus-gproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/dbus-gproxy.c')
-rw-r--r--glib/dbus-gproxy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/glib/dbus-gproxy.c b/glib/dbus-gproxy.c
index fe285ab3..24ce6bf3 100644
--- a/glib/dbus-gproxy.c
+++ b/glib/dbus-gproxy.c
@@ -941,8 +941,8 @@ dbus_g_proxy_new_for_service_owner (DBusGConnection *connection,
DBusGProxy *proxy;
DBusMessage *request, *reply;
DBusError derror;
- char *base_service_name;
-
+ const char *base_service_name;
+
g_return_val_if_fail (connection != NULL, NULL);
g_return_val_if_fail (service_name != NULL, NULL);
g_return_val_if_fail (path_name != NULL, NULL);
@@ -962,7 +962,7 @@ dbus_g_proxy_new_for_service_owner (DBusGConnection *connection,
g_error ("Out of memory");
if (! dbus_message_append_args (request,
- DBUS_TYPE_STRING, service_name,
+ DBUS_TYPE_STRING, &service_name,
DBUS_TYPE_INVALID))
g_error ("Out of memory");
@@ -997,7 +997,6 @@ dbus_g_proxy_new_for_service_owner (DBusGConnection *connection,
dbus_message_unref (request);
if (reply)
dbus_message_unref (reply);
- dbus_free (base_service_name);
return proxy;
}