From cc0ce73d39d0f5b79c2a4a25d35c5f56ed8e9520 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 24 Feb 2024 12:09:09 +0100 Subject: This should improve stability when unloading libs --- src/librarian/librarian.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/librarian/librarian.c b/src/librarian/librarian.c index 93034ed1..9250a165 100644 --- a/src/librarian/librarian.c +++ b/src/librarian/librarian.c @@ -35,10 +35,10 @@ void FreeLibrarian(lib_t **maplib, x64emu_t *emu) library_t* owner = (*maplib)->owner; (*maplib)->owner = NULL; // to avoid recursive free... - for(int i=0; i<(*maplib)->libsz; ++i) { + /*for(int i=0; i<(*maplib)->libsz; ++i) { printf_dump(LOG_DEBUG, "Unloading %s\n", (*maplib)->libraries[i]->name); DecRefCount(&(*maplib)->libraries[i], emu); - } + }*/ box_free((*maplib)->libraries); (*maplib)->libraries = NULL; -- cgit 1.4.1