Static linking memory leaks
Posted: 2017-03-23T08:25:13-07:00
my IM build is 7.0.5-3, multi-threaded DLL (MTD) static lib.
my OS is windows 8.1
my IDE is MS visual studio 2015.
I noticed some memory leaks on my program that uses Magick++ api, when I tried to link statically.
I use _CrtDumpMemoryLeaks to report memory leaks.
I managed to reproduce it on the UTIL_convert project:
Just add the _CrtDumpMemoryLeaks() call just before exit the main function in utilities/magick.c.
I tracked the memory allocation numbers and it seems to be glib allocations.
Maybe this is just false positives reports because glib release its memory block at the exit time?
Could you please confirm?
When I link the magick lib dynamically, I have no memory leak report.
Thanks in advance.
my OS is windows 8.1
my IDE is MS visual studio 2015.
I noticed some memory leaks on my program that uses Magick++ api, when I tried to link statically.
I use _CrtDumpMemoryLeaks to report memory leaks.
I managed to reproduce it on the UTIL_convert project:
Just add the _CrtDumpMemoryLeaks() call just before exit the main function in utilities/magick.c.
I tracked the memory allocation numbers and it seems to be glib allocations.
Maybe this is just false positives reports because glib release its memory block at the exit time?
Could you please confirm?
When I link the magick lib dynamically, I have no memory leak report.
Thanks in advance.