   Opengl Game Programming
  In the book there is a function to load in a bitmap, the function mallocs memeory but never frees it. Isn''t this bad?    I don''t have to do nothing but live and die, everything else i choose to do- I don''t know, but my dad says it alot 
  Depends. I don''t know the code in question, but if the allocated memory is the bitmap data being returned, then it''ll be up to you to free it when you are done with the bitmap. Of course, if the memory being allocated isn''t returned, and they leave it dangling... then yes, that''s bad.   GolemBlender--The Gimp--Python--Lua--SDLNethack--Crawl--ADOM--Angband--Dungeondweller;  isiahil: can you just give me a page number so I can look at it real quick? I''ve the book right here. ;  I''m guessing it''s part of the code from Chapter 7. I downloaded the Chapter 7 code from the website and looked at it, and it looks like the function LoadBitmapFile() allocates memory (bitmapImage) and returns the pointer after the image is loaded. That''s the only memory the function allocates, so I''m guessing that''s it. I could be wrong, though...   GolemBlender--The Gimp--Python--Lua--SDLNethack--Crawl--ADOM--Angband--Dungeondweller