Resolve GLib-Gobject-CRITICAL warnings

This commit is contained in:
Moritz Lipp 2011-09-21 09:46:54 +02:00
parent 24081171db
commit e47ff9ad47

View File

@ -254,8 +254,13 @@ zathura_free(zathura_t* zathura)
zathura_db_free(zathura->database); zathura_db_free(zathura->database);
/* free print settings */ /* free print settings */
g_object_unref(zathura->print.settings); if(zathura->print.settings != NULL) {
g_object_unref(zathura->print.page_setup); g_object_unref(zathura->print.settings);
}
if (zathura->print.page_setup != NULL) {
g_object_unref(zathura->print.page_setup);
}
/* free registered plugins */ /* free registered plugins */
zathura_document_plugins_free(zathura); zathura_document_plugins_free(zathura);