diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-04-15 16:18:55 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-04-15 16:18:55 +0200 |
| commit | dd3ea0b5e6639e65b9e72e7fa0a36d162ccece1f (patch) | |
| tree | b99a6d0752d2d2e483662939db91de04768466d2 /src/librarian/library.c | |
| parent | 4dbb1f6101b12a189a9c61c153c328b29889c6cf (diff) | |
| download | box64-dd3ea0b5e6639e65b9e72e7fa0a36d162ccece1f.tar.gz box64-dd3ea0b5e6639e65b9e72e7fa0a36d162ccece1f.zip | |
More fixes for dlclose/dlopen sequences
Diffstat (limited to 'src/librarian/library.c')
| -rwxr-xr-x | src/librarian/library.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c index 109a11ba..085d954d 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -585,6 +585,9 @@ void Free1Library(library_t **lib, x64emu_t* emu) kh_destroy(symbol2map, (*lib)->w.symbol2map); } + // remove frim the dlopen collection + if((*lib)->dlopen) + RemoveDlopen(lib, (*lib)->dlopen); box_free(*lib); *lib = NULL; } @@ -1135,4 +1138,10 @@ int GetRefCount(library_t* lib) default: return 0; } -} \ No newline at end of file +} + +void SetDlOpenIdx(library_t* lib, int dlopen) +{ + if(lib) + lib->dlopen = dlopen; +} |