fix closeDocument return #34

If we don't return 0 lua just exits on us, breaking return to file
chooser
pull/2/merge
Dobrica Pavlinusic 12 years ago
parent 5d9e51aadd
commit 4a5b12aaa4

@ -117,6 +117,7 @@ static int closeDocument(lua_State *L) {
doc->context = NULL;
}
return 0;
}
static int getNumberOfPages(lua_State *L) {

@ -79,6 +79,7 @@ static int closeDocument(lua_State *L) {
fz_free_context(doc->context);
doc->context = NULL;
}
return 0;
}
static int getNumberOfPages(lua_State *L) {

Loading…
Cancel
Save