mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
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:
parent
2222b657de
commit
a8c784df58
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user