mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 16:16:01 +01:00
Remove signal handler when closing
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
274809be41
commit
2da759149b
1 changed files with 10 additions and 2 deletions
|
@ -93,7 +93,8 @@ zathura_create(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* UI */
|
/* UI */
|
||||||
if ((zathura->ui.session = girara_session_create()) == NULL) {
|
zathura->ui.session = girara_session_create();
|
||||||
|
if (zathura->ui.session == NULL) {
|
||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,6 +327,13 @@ zathura_free(zathura_t* zathura)
|
||||||
|
|
||||||
document_close(zathura, false);
|
document_close(zathura, false);
|
||||||
|
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
|
if (zathura->signals.sigterm > 0) {
|
||||||
|
g_source_remove(zathura->signals.sigterm);
|
||||||
|
zathura->signals.sigterm = 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* stop D-Bus */
|
/* stop D-Bus */
|
||||||
if (zathura->dbus != NULL) {
|
if (zathura->dbus != NULL) {
|
||||||
g_object_unref(zathura->dbus);
|
g_object_unref(zathura->dbus);
|
||||||
|
@ -870,7 +878,7 @@ document_open(zathura_t* zathura, const char* path, const char* uri, const char*
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set up recolor info in ZathuraRenderer */
|
/* set up recolor info in ZathuraRenderer */
|
||||||
char* recolor_dark = NULL;
|
char* recolor_dark = NULL;
|
||||||
char* recolor_light = NULL;
|
char* recolor_light = NULL;
|
||||||
girara_setting_get(zathura->ui.session, "recolor-darkcolor", &recolor_dark);
|
girara_setting_get(zathura->ui.session, "recolor-darkcolor", &recolor_dark);
|
||||||
girara_setting_get(zathura->ui.session, "recolor-lightcolor", &recolor_light);
|
girara_setting_get(zathura->ui.session, "recolor-lightcolor", &recolor_light);
|
||||||
|
|
Loading…
Reference in a new issue