[glib] boxed: Fix double free in boxed unit tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] boxed: Fix double free in boxed unit tests
- Date: Mon, 11 Nov 2013 06:20:39 +0000 (UTC)
commit b88f992c6ea3b082ac967b852ceb1618c0196783
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 14:48:36 2013 +0100
boxed: Fix double free in boxed unit tests
https://bugzilla.gnome.org/show_bug.cgi?id=711782
gobject/tests/boxed.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/tests/boxed.c b/gobject/tests/boxed.c
index a146c16..70e3ea7 100644
--- a/gobject/tests/boxed.c
+++ b/gobject/tests/boxed.c
@@ -581,7 +581,7 @@ test_boxed_thread (void)
g_assert (G_VALUE_HOLDS_BOXED (&value));
t = g_thread_self ();
- g_value_take_boxed (&value, t);
+ g_value_set_boxed (&value, t);
t2 = g_value_get_boxed (&value);
g_assert (t == t2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]