pidgin/pidgin

Avoid g_object_ref of NULL

20 months ago, Elliott Sales de Andrade
57dcc21a926e
Avoid g_object_ref of NULL

It is `NULL`-safe, but only with a `g_return_val_if_fail`, so it'll warn when passed `NULL`.

Testing Done:
Compile only

Reviewed at https://reviews.imfreedom.org/r/1836/
if get_option('doc')
subdir('libpurple')
subdir('protocols')
if ENABLE_GTK
subdir('pidgin')
else
pidgin_doc = []
endif
if enable_consoleui
subdir('finch')
else
finch_doc = []
endif
alias_target('doc', libpurple_doc, protocols_doc, pidgin_doc, finch_doc)
endif