mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:23:47 +01:00
Resolve GLib-Gobject-CRITICAL warnings
This commit is contained in:
parent
24081171db
commit
e47ff9ad47
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user