about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64emu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64emu.c b/src/emu/x64emu.c
index 8ac3e179..2d747c92 100644
--- a/src/emu/x64emu.c
+++ b/src/emu/x64emu.c
@@ -142,7 +142,7 @@ void AddCleanup(x64emu_t *emu, void *p, void* dso_handle)
     (void)emu;
     
     if(my_context->clean_sz == my_context->clean_cap) {
-        my_context->clean_cap += 4;
+        my_context->clean_cap += 32;
         my_context->cleanups = (cleanup_t*)box_realloc(my_context->cleanups, sizeof(cleanup_t)*my_context->clean_cap);
     }
     my_context->cleanups[my_context->clean_sz].arg = 0;
@@ -156,7 +156,7 @@ void AddCleanup1Arg(x64emu_t *emu, void *p, void* a, void* dso_handle)
     (void)emu;
     
     if(my_context->clean_sz == my_context->clean_cap) {
-        my_context->clean_cap += 4;
+        my_context->clean_cap += 32;
         my_context->cleanups = (cleanup_t*)box_realloc(my_context->cleanups, sizeof(cleanup_t)*my_context->clean_cap);
     }
     my_context->cleanups[my_context->clean_sz].arg = 1;