[gobject-introspection] Fix thinko in regress suite.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Fix thinko in regress suite.
- Date: Wed, 8 Dec 2010 21:02:23 +0000 (UTC)
commit 689cc05ba8b6b872ae6d77995eff23a788770d35
Author: Pavel Holejsovsky <pavel holejsovsky gmail com>
Date: Tue Nov 30 09:41:12 2010 +0100
Fix thinko in regress suite.
regress_test_fundamental_sub_object_finalize should call parent's
regress_test_fundamental_object_finalize instead of
regress_test_fundamental_object_unref, otherwise recursion and
double-free might happen.
https://bugzilla.gnome.org/show_bug.cgi?id=636620
tests/scanner/regress.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index cd7e91c..e6350b7 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2344,7 +2344,7 @@ regress_test_fundamental_sub_object_finalize (RegressTestFundamentalSubObject *
g_return_if_fail (fundamental_sub_object != NULL);
g_free(fundamental_sub_object->data);
- regress_test_fundamental_object_unref (REGRESS_TEST_FUNDAMENTAL_OBJECT (fundamental_sub_object));
+ regress_test_fundamental_object_finalize (REGRESS_TEST_FUNDAMENTAL_OBJECT (fundamental_sub_object));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]