Prevent small memory leak with non-empty argv0 #21

This commit is contained in:
Lovell Fuller 2014-08-26 15:25:36 +01:00
parent 8380be4be3
commit 0d89131f66

View File

@ -765,7 +765,7 @@ static void at_exit(void* arg) {
extern "C" void init(Handle<Object> target) { extern "C" void init(Handle<Object> target) {
NanScope(); NanScope();
vips_init(""); vips_init("sharp");
AtExit(at_exit); AtExit(at_exit);
// Set libvips operation cache limits // Set libvips operation cache limits
vips_cache_set_max_mem(100 * 1048576); // 100 MB vips_cache_set_max_mem(100 * 1048576); // 100 MB