Method
GObjectWeakRefclear
since: 2.32
Description
Frees resources associated with a non-statically-allocated GWeakRef
.
After this call, the GWeakRef
is left in an undefined state.
You should only call this on a GWeakRef
that previously had
g_weak_ref_init()
called on it.
Available since: 2.32
This method is not directly available to language bindings.
Parameters
weak_ref
-
Type:
GWeakRef
Location of a weak reference, which may be empty.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.