[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] main_menu bug
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] main_menu bug |
Date: |
Sun, 29 Sep 2002 18:52:32 +0200 |
On Sun, 29 Sep 2002 18:00:30 +0200 Alexandre Courbot wrote:
> So this would solve only half of the problem, I fear. All the stuff
> contained in the container would be deleted, but not the container
> itself, which would still occupy its memory. There must be a reference
> somewhere, or a thisown badly set...
I tried setting 'thisown' to 1, but it didn't make any difference.
Anyway, the main_menu memleak is fixed with the changes I committed, and
a few others as well.
There are a couple remaining, but from the backtrace, they seem to come
from X11:
2 bytes in 1 blocks are still reachable in loss record 1 of 61
at 0x40047CEB: malloc (vg_clientfuncs.c:100)
by 0x403ABEA0: _XlcResolveLocaleName (in /usr/X11R6/lib/libX11.so.6.2)
by 0x403B31D1: initialize (in /usr/X11R6/lib/libX11.so.6.2)
by 0x403B2053: initialize (in /usr/X11R6/lib/libX11.so.6.2)
by 0x403B2D09: _XlcCreateLC (in /usr/X11R6/lib/libX11.so.6.2)
by 0x403AB2DA: _XlcDefaultLoader (in /usr/X11R6/lib/libX11.so.6.2)
by 0x40372B9C: _XOpenLC (in /usr/X11R6/lib/libX11.so.6.2)
by 0x40372CAE: _XlcCurrentLC (in /usr/X11R6/lib/libX11.so.6.2)
by 0x4037D37E: _XkbGetCharset (in /usr/X11R6/lib/libX11.so.6.2)
by 0x4037BB16: XkbTranslateKeySym (in /usr/X11R6/lib/libX11.so.6.2)
by 0x4037BD7E: XLookupString (in /usr/X11R6/lib/libX11.so.6.2)
by 0x4027C711: X11_TranslateKey (SDL_x11events.c:709)
by 0x4027BE23: X11_DispatchEvent (SDL_x11events.c:293)
by 0x4027C139: X11_PumpEvents (SDL_x11events.c:469)
by 0x4028EEB4: SDL_PumpEvents (SDL_events.c:355)
by 0x80B867B: input::update(void) (input.cc:67)
by 0x80B1E1F: adonthell::main_loop(void) (adonthell.cc:85)
by 0x80B1DC1: adonthell::main(win_base *, basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> >)
(adonthell.cc:63)
[...]
There are still more, but I don't think that they are too bad. For
example, the title_screen gets never free'd either.
The event system however seems to be free of leaks.
Kai
- [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/28
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug,
Kai Sterker <=
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29