Hi Does anyone know where PLStream::dev is freed? In the wxWidgets driver plD_tidy_wxwidgets function there is a comment saying it is freed in plcore.c, but I can't find it. Other drivers also seem to not bother tidying up their memory allocations for this pointer.
The reason I ask is that if this is true then it is bad. The dev pointer for wxWidgets is created with new not malloc so needs freeing with delete not free. But even worse is the fact that on windows for the shared lib case this would mean the allocation would occur in one dll and the free in another - this isn't permitted on Windows, because each dll has its own heap and trying to free memory allocated in another dll will cause a heap corruption. Phil ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel