Re: [AD] Patch to fix a memory leak in examples/exconfig.c (4.3.10)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


*BUMP*

Seems this patch didn't get through.

On 30/09/2008, you wrote:

> Hi all.
>
> Just a quick patch to add a forgotten call to destroy_bitmap() that was
> causing a memory leak.
>
Regards
-- 
/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2    ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne      ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/
--- examples/exconfig.c	(revision 10997)
+++ examples/exconfig.c	(working copy)
@@ -149,6 +149,8 @@
 		       background->w, background->h);
          break; 
       }
+
+      destroy_bitmap(background);
    }
    else {
       textprintf_centre_ex(screen, font, SCREEN_W/2, SCREEN_H/2,


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/