mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Prevent small memory leak with non-empty argv0 #21
This commit is contained in:
parent
8380be4be3
commit
0d89131f66
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user