X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0021.html-inc;h=1945937aa5a7d7c8d752ce5a2e560b4c3f8a62d7;hb=6855e5615bff699e656bdd67be71ac965fc77f54;hp=da0846f7e72f96b7501e8b50a220fb61a9da74a9;hpb=8d3f70f2a099e5c99545142b8dcb2368ab3f9b1f;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0021.html-inc b/pages/blog-0021.html-inc index da0846f..1945937 100644 --- a/pages/blog-0021.html-inc +++ b/pages/blog-0021.html-inc @@ -1,6 +1,38 @@

-Catching memory leaks in XS +New build system! Needs testing!

-
 I slay dragons, yonder

So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here. The problem occurs where in XS there is

RETVAL = (cast *) safemalloc( ... );
 and safefree(...) is never called.
Here is a in code example lines 1082 on.

My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .


Any guidance is helpful.

--yapgh
\ No newline at end of file +
+
+
+
+
Rome was not built,
+in one day,
 feature creep,
+existed back then too.
+
+

+
kmx++ recently worked on a brand new Build system for Alien::SDL and SDL_perl. We have managed to test it in Windows and Linux environments. We would still appreciate testing on all environments. However none of us have a shiny Mac to try this on. So if you have a Mac please consider testing the following:

+
Thank you very much!
+
+EDIT: 
+ After some  reports back we have found out that SDL_gfx needs 
+
+

+http://cblfs.cross-lfs.org/index.php/SDL_gfx#64Bit
+
+

+We are working to get this done.
+


+

\ No newline at end of file