GVariantBuilder: loosen assertion check
authorRyan Lortie <desrt@desrt.ca>
Wed, 3 Mar 2010 16:36:52 +0000 (11:36 -0500)
committerRyan Lortie <desrt@desrt.ca>
Wed, 3 Mar 2010 16:38:14 +0000 (11:38 -0500)
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

index 015d46a9837caea1c81398905c0bb39e4b8a215f..00a16da23f55994268719d11a34038ba237ac3ae 100644 (file)
@@ -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: