X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0021.html-inc;h=8978342f5d6ba01117e1a0dda5f9dbe8d8a5a674;hb=e785862422f3e827a242fc244bd57b23443887ce;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..8978342 100644 --- a/pages/blog-0021.html-inc +++ b/pages/blog-0021.html-inc @@ -1,6 +1,36 @@

-Catching memory leaks in XS +SDL Perl Showcase

-
 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 +
+SDL_Mixer and Effects

+
+

+This demo shows the new work we have finished for SDL_Mixer support in SDL_perl . (FROGGS++)
+
+
+
+
+Get it at: playlist.pl, you need some .ogg files to play in the same directory. Use the down key to go through them.
+
+
+SDL_TTF support

+
+
+

+
+This shows the current work on SDL_TTF support. UTF8 and Uncicode are supported.
+
+See the t/ttf.t test in github SDL_perl.
+
+
+
+Spinner (Destiny Swirl) Arcade Game

+

+
And finally as a proof of concept we have been working a simple arcade game to test our bugs, and scope out our high level bindings. You can get it at the Spinner repo. This wiki page will help you set up for your platforms. 
+


+

\ No newline at end of file