mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
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.
This commit is contained in:
parent
9a886135c8
commit
560f518743
@ -2348,8 +2348,7 @@ struct heap_builder
|
|||||||
#define GVHB_MAGIC ((gsize) 3087242682u)
|
#define GVHB_MAGIC ((gsize) 3087242682u)
|
||||||
#define is_valid_builder(b) (b != NULL && \
|
#define is_valid_builder(b) (b != NULL && \
|
||||||
GVSB(b)->magic == GVSB_MAGIC)
|
GVSB(b)->magic == GVSB_MAGIC)
|
||||||
#define is_valid_heap_builder(b) (GVHB(b)->magic == GVHB_MAGIC && \
|
#define is_valid_heap_builder(b) (GVHB(b)->magic == GVHB_MAGIC)
|
||||||
is_valid_builder(b))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_variant_builder_new:
|
* g_variant_builder_new:
|
||||||
|
Loading…
Reference in New Issue
Block a user