Commit 954ace7a authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Resolve SIGSEGV in sc_abort

parent 60523c55
...@@ -23,13 +23,15 @@ sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument), ...@@ -23,13 +23,15 @@ sc_abort(girara_session_t* session, girara_argument_t* UNUSED(argument),
g_return_val_if_fail(session->global.data != NULL, false); g_return_val_if_fail(session->global.data != NULL, false);
zathura_t* zathura = session->global.data; zathura_t* zathura = session->global.data;
for (unsigned int page_id = 0; page_id < zathura->document->number_of_pages; ++page_id) { if (zathura->document != NULL) {
zathura_page_t* page = zathura->document->pages[page_id]; for (unsigned int page_id = 0; page_id < zathura->document->number_of_pages; ++page_id) {
if (page == NULL) { zathura_page_t* page = zathura->document->pages[page_id];
continue; if (page == NULL) {
} continue;
}
g_object_set(page->drawing_area, "draw-links", FALSE, NULL); g_object_set(page->drawing_area, "draw-links", FALSE, NULL);
}
} }
girara_mode_set(session, session->modes.normal); girara_mode_set(session, session->modes.normal);
......
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