Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: [Patch] New city dialog (8a)
Home

[Freeciv-Dev] Re: [Patch] New city dialog (8a)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch] New city dialog (8a)
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 15:31:03 -0700 (PDT)

On Thu, 6 Sep 2001, Raimar Falke wrote:
> > > X11 resources.
> > 
> 
> > this is very possible. I haven't gone through carefully to make sure
> > everthing gets freed. I guess a check would be to only have one
> > city. Open and close the dialog several times. The max memory usage
> > shouldn't change after the first open?
> 
> Yes. But I think it isn't easy to debug this. Maybe you can do a
> normal memory leak test as a preparation step?!

They way you debug this is to look at every single instance where you allocate
memory or do something that allocates resources on the X server.  Then you
make sure that all those will be freed in some way.  It's very hard.  I spent
many hours removing memory leaks from the client.



[Prev in Thread] Current Thread [Next in Thread]