gdbus: Fix double free and use after free of object path

* This occurs when the 'g-object-path' property is read
   on a GDBusObjectSkeleton

https://bugzilla.gnome.org/show_bug.cgi?id=682075
This commit is contained in:
Stef Walter 2012-08-17 10:55:10 +02:00
parent 2222b657de
commit a8c784df58

View File

@ -98,7 +98,7 @@ g_dbus_object_skeleton_get_property (GObject *_object,
{
case PROP_G_OBJECT_PATH:
g_mutex_lock (&object->priv->lock);
g_value_take_string (value, object->priv->object_path);
g_value_set_string (value, object->priv->object_path);
g_mutex_unlock (&object->priv->lock);
break;