Re: [PATCH] relocatable: free memory in DLL_PROCESS_DETACH

2021-08-08 Thread Jonathan Boeing
On Sun, 08 Aug 2021 19:18:51 +0200 Bruno Haible wrote: > > This is noticeable in Claws because we load/unload Enchant when we > > open/close a message compose window. > > Thanks for explaining the use-case. I could not imagine why it would > be useful to care about DLL_PROCESS_DETACH, i.e. why

Re: [PATCH] relocatable: free memory in DLL_PROCESS_DETACH

2021-08-08 Thread Bruno Haible
Hi, Jonathan Boeing wrote: > Claws Mail uses the Enchant spell checking library, which we build with > relocatable support for Windows. > > Running with app verifier enabled caught a memory leak in > lib/relocatable.c. The memory allocated in DllMain() by: > > shared_library_fullname = strdup (

[PATCH] relocatable: free memory in DLL_PROCESS_DETACH

2021-08-04 Thread Jonathan Boeing
oeing Date: Wed, 4 Aug 2021 17:12:37 -0700 Subject: [PATCH] relocatable: free memory in DLL_PROCESS_DETACH --- lib/relocatable.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/relocatable.c b/lib/relocatable.c index ababc3501..b797e324c 100644 --- a/lib/relocata