Change the object to which @weak_ref points, or set it to null.
You must own a strong reference on @object while calling this function.
2.32
a #GObject or null