From: "Ingo Ruhnke" Newsgroups: comp.os.msdos.djgpp Subject: Re: allegro bmp/pcx loading problems Date: 23 Dec 1997 17:05:40 GMT Organization: Telemedia News Server Lines: 16 Message-ID: <01bd0f1f$9f1e2e40$0200a8c0@ingo> References: NNTP-Posting-Host: gtso-m127-87.pool.mediaways.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Theuzifan wrotes > try the_image=(BITMAP **)malloc(sizeof(BITMAP *)*4); > I can feel I'm maybe wrong... please correct me if this happens! I think you are wrong, all the malloc() stuff that is needed should be done by the load_bitmap() function, therefore there is the destroy_bitmap() function at the end which frees the allocated memory. Ingo -- Ingo Ruhnke grumbel AT gmx DOT de http://home.pages.de/~grumbel