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/
PURPLE_HISTORY_SOURCES = [
'purplehistorycore.c',
]
purple_history = executable('purple-history',
PURPLE_HISTORY_SOURCES,
dependencies : [libpurple_dep, glib],
install : true)