[glib/wip/gcleanup: 19/21] boxed: Fix double free in boxed unit tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 19/21] boxed: Fix double free in boxed unit tests
- Date: Thu, 7 Nov 2013 07:22:14 +0000 (UTC)
commit d4c66e3e452c4520fcbaa6f7f761c16709bd5aa7
Author: Stef Walter <stefw gnome org>
Date: Thu Oct 31 23:05:47 2013 +0100
boxed: Fix double free in boxed unit tests
https://bugzilla.gnome.org/show_bug.cgi?id=627423
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]