Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
2da75914
Commit
2da75914
authored
Jan 20, 2016
by
Sebastian Ramacher
Browse files
Remove signal handler when closing
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
274809be
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/zathura.c
View file @
2da75914
...
...
@@ -93,7 +93,8 @@ zathura_create(void)
}
/* UI */
if
((
zathura
->
ui
.
session
=
girara_session_create
())
==
NULL
)
{
zathura
->
ui
.
session
=
girara_session_create
();
if
(
zathura
->
ui
.
session
==
NULL
)
{
goto
error_out
;
}
...
...
@@ -326,6 +327,13 @@ zathura_free(zathura_t* zathura)
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 */
if
(
zathura
->
dbus
!=
NULL
)
{
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 */
char
*
recolor_dark
=
NULL
;
char
*
recolor_dark
=
NULL
;
char
*
recolor_light
=
NULL
;
girara_setting_get
(
zathura
->
ui
.
session
,
"recolor-darkcolor"
,
&
recolor_dark
);
girara_setting_get
(
zathura
->
ui
.
session
,
"recolor-lightcolor"
,
&
recolor_light
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment