delorie.com/archives/browse.cgi | search |
Message-ID: | <394BE835.D7C0D958@connect.ab.ca> |
Date: | Sat, 17 Jun 2000 15:05:57 -0600 |
From: | Tom Fjellstrom <tomcf AT connect DOT ab DOT ca> |
X-Mailer: | Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: free crashes |
References: | <394BC51F DOT B6B956C1 AT ne DOT infi DOT net> |
NNTP-Posting-Host: | ppp042.connect.ab.ca |
X-Trace: | 17 Jun 2000 15:07:26 -0600, ppp042.connect.ab.ca |
Lines: | 18 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Martell wrote: > > my program works fine, except when the line at the very end of my code > comes along: > > free(bmp.data); > > then it crashes. what in the world could cause this?! I really wouldn't have a clue without seeing a better example, but i could suggest replacing that line with if(bmp.data) free(bmp.data); -- Top 10 reasons to procrastinate: 1. Tom Fjellstrom
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |