hey tux4life,
i recently meet the same problem, so i go to google, with the query "stl map memory deallocate", and this page is the 1st result given by google. But i found the answers in the thread not solve the problem. so i try to solve it myself.
i think i should share my finding to everyone else, no matter how old this thread is.