fix closeDocument return #34

If we don't return 0 lua just exits on us, breaking return to file
chooser
This commit is contained in:
Dobrica Pavlinusic
2012-03-05 18:35:54 +01:00
parent 5d9e51aadd
commit 4a5b12aaa4
2 changed files with 2 additions and 0 deletions

1
djvu.c
View File

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

1
pdf.c
View File

@@ -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) {