[glib] gdbus: Fix double free and use after free of object path
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus: Fix double free and use after free of object path
- Date: Tue, 21 Aug 2012 11:21:42 +0000 (UTC)
commit a8c784df58b7af490d0b08e74bd6f1085da692df
Author: Stef Walter <stefw gnome org>
Date: Fri Aug 17 10:55:10 2012 +0200
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
gio/gdbusobjectskeleton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusobjectskeleton.c b/gio/gdbusobjectskeleton.c
index 28881e6..aa283b1 100644
--- a/gio/gdbusobjectskeleton.c
+++ b/gio/gdbusobjectskeleton.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]