Normaly on Windows when you close the application all of its memory is released. There are exceptions when a program is using two or more seperate memory managers but this is quite unlikely in your case.

Now you can send me the source code and I'll take a look at it to see what might be causing theese segfaults.