Re: [Freeciv-Dev] gtk-client maybe leaks memory on x-server
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On 20 May 1999, Markus Linnala wrote:
> Markus Linnala <maage@xxxxxxxxx> writes:
>
> > Anyone else seen gtk-client leaking memory on X-server?
>
> I think city popup dialog is to blame.
>
> I opened and closed the dialog and X server size went up from
> 21928 to 24984 (RSS 13676 -> 16724).
Hummm... You mean one of those city popup dialogs right? Or the city
list dialog?
Anyway, after yesterday's memory leak reports i've seen a really weird
memory leak which made me lose 1.5M of ram in ~20 turns, i should send a
patch for it later today.
Also, it seems like the X server "reuses" the memory it allocated earlier.
E.g. try opening the dialog, closing it, and opening it again. The server
size shouldn't increase on the 2nd time because it already has all the mem
it needs.
That's what happens when you have 128Mb of ram, memory leaks go unnoticed
for a while :-) However on older gtk-client versions (REALLY old ones)
when i did development on a P100 with 16Mb of ram i didn't notice any
memory leaks. I guess they must have come with the new features i
introduced...
Keep those bug reports coming!
---
Vasco Alexandre da Silva Costa, student @ Instituto Superior Tecnico,
Technical University of Lisbon - Software & Computer Engineering
|
|