Commit e47ff9ad authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Resolve GLib-Gobject-CRITICAL warnings

parent 24081171
......@@ -254,8 +254,13 @@ zathura_free(zathura_t* zathura)
zathura_db_free(zathura->database);
/* free print settings */
g_object_unref(zathura->print.settings);
g_object_unref(zathura->print.page_setup);
if(zathura->print.settings != NULL) {
g_object_unref(zathura->print.settings);
}
if (zathura->print.page_setup != NULL) {
g_object_unref(zathura->print.page_setup);
}
/* free registered plugins */
zathura_document_plugins_free(zathura);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment