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

-Catching memory leaks in XS +Eye Candy

-
 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 +
+clang
+With each imperfect hit
+a legendary blade forms
+

+
+
+In prep for the TPM meeting we have been working hard to release a new version of SDL Perl and Alien::SDL. After a lot of feed back from testers (Mike Stok, Stuart Watt, and Chas Owens), we where able to get a working version on 64bit and Mac. The releases will be out tomorrow but here
+is some eye candy to tide you guys over.
+
+
+This is shooter.pl finally working in MacOSX and 64 bit.
+
+

+
+k23z_ mentioned I should get some more SDL_perl videos out to attract some devs. So here goes.
+
+Walking Guy from SDLPerl on Vimeo.
+


+

\ No newline at end of file