[Freeciv-Dev] Re: (PR#3609) Set members of sprite to NULL in free_sprite
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients:; |
Subject: |
[Freeciv-Dev] Re: (PR#3609) Set members of sprite to NULL in free_sprite |
From: |
"Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx> |
Date: |
Tue, 4 Mar 2003 23:59:06 -0800 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
On Tue, Mar 04, 2003 at 05:32:05PM -0800, Jason Short wrote:
>
> [rfalke - Tue Mar 4 19:30:42 2003]:
>
> > This is a debugging aid for the new sprite loading to find sprite
> > pointer which are already freed.
>
> Seems ugly. Can we use some #ifdef DEBUG here? That makes it even more
> ugly, but at least it's clear that it's for debugging only...
Throughout the code we already have this construct
free(x);
x = NULL;
a lot of times.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"The very concept of PNP is a lovely dream that simply does not translate to
reality. The confusion of manually doing stuff is nothing compared to the
confusion of computers trying to do stuff and getting it wrong, which they
gleefully do with great enthusiasm."
-- Jinx Tigr in the SDM
|
|