Function
GObjectWeakRefclear
since: 2.32
Declaration [src]
void
g_weak_ref_clear (
GWeakRef* weak_ref
)
Description [src]
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 function is not directly available to language bindings.
Parameters
weak_ref
-
Type:
GWeakRef
Location of a weak reference, which may be empty.
The argument will be modified by the function. The caller of the function takes ownership of the returned data, and is responsible for freeing it.