delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/12:45:26

From: "Ingo Ruhnke" <grumbel AT gmx DOT de>
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: <Pine DOT LNX DOT 3 DOT 95 DOT 971222084816 DOT 17050E-100000 AT silvia DOT rec DOT upv DOT es>
NNTP-Posting-Host: gtso-m127-87.pool.mediaways.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Theuzifan <uzi AT simauria DOT upv DOT es> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019