Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed segfault

  • Loading branch information...
commit 134efcf0dd55795c3ce1628c3e4b7f8ed7112f52 1 parent c2a397b
@karottenreibe authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  widgets/document.c
  2. +1 −0  widgets/document/search.c
View
2  widgets/document.c
@@ -118,6 +118,7 @@ document_update_adjustments(document_data_t *d)
static void
luaH_document_destructor(widget_t *w) {
document_data_t *d = w->data;
+ document_clear_search(d);
gtk_widget_destroy(GTK_WIDGET(d->widget));
/* release our reference on the document. Poppler handles freeing it */
if (d->document)
@@ -133,7 +134,6 @@ luaH_document_destructor(widget_t *w) {
}
g_ptr_array_free(d->pages, TRUE);
}
- document_clear_search(d);
g_object_unref(d->hadjust);
g_object_unref(d->vadjust);
g_free(d);
View
1  widgets/document/search.c
@@ -29,6 +29,7 @@ document_clear_search(document_data_t *d)
g_list_free(p->search_matches);
p->search_matches = NULL;
}
+ document_render(d);
}
static gint
Please sign in to comment.
Something went wrong with that request. Please try again.