app: use GWeakRef instead of g_object_add_weak_pointer().
Other than multi-threading (which here is not the problem), using GWeakRef has the other advantage that it makes the type of pointer obvious, hence avoiding the kind of errors as fixed in commit 12df7960. One can't just change the pointer value directly, and has to use g_weak_ref_set(), so such problem won't happen again.
Showing
Please register or sign in to comment