VariantDict.clear

Releases all memory associated with a glib.VariantDict without freeing the glib.VariantDict structure itself.

It typically only makes sense to do this on a stack-allocated glib.VariantDict if you want to abort building the value part-way through. This function need not be called if you call Variant.dictEnd and it also doesn't need to be called on dicts allocated with g_variant_dict_new (see Variant.dictUnref for that).

It is valid to call this function on either an initialised glib.VariantDict or one that was previously cleared by an earlier call to Variant.dictClear but it is not valid to call this function on uninitialised memory.

class VariantDict
void
clear
()

Meta

Since

2.40