mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:36:01 +01:00
Resolve GLib-Gobject-CRITICAL warnings
This commit is contained in:
parent
24081171db
commit
e47ff9ad47
1 changed files with 7 additions and 2 deletions
|
@ -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 a new issue