[glib] GVariantBuilder: loosen assertion check
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GVariantBuilder: loosen assertion check
- Date: Wed, 3 Mar 2010 16:38:26 +0000 (UTC)
commit 560f5187432fc890725c5bb5c74a0997affb888c
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Mar 3 11:36:52 2010 -0500
GVariantBuilder: loosen assertion check
Don't check that a GVariantBuilder is fully-valid for use when
performing refcounting operations, as these operations may be occuring
after the builder has already been cleared.
glib/gvariant.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 015d46a..00a16da 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -2348,8 +2348,7 @@ struct heap_builder
#define GVHB_MAGIC ((gsize) 3087242682u)
#define is_valid_builder(b) (b != NULL && \
GVSB(b)->magic == GVSB_MAGIC)
-#define is_valid_heap_builder(b) (GVHB(b)->magic == GVHB_MAGIC && \
- is_valid_builder(b))
+#define is_valid_heap_builder(b) (GVHB(b)->magic == GVHB_MAGIC)
/**
* g_variant_builder_new:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]