[wx 2.6.3, X11, g++ 4.0.3] Memory leaks present using wxEntry
Vadim Zeitlin
vadim at wxwindows.org
Thu Oct 19 06:31:24 PDT 2006
On Tue, 17 Oct 2006 17:44:26 -0400 Lukasz Kosewski <lkosewsk at gmail.com> wrote:
LK> Valgrind identifies most of the leaks as mallocs or callocs in
LK> XOpenDisplay, _Xenq, etc. so I figure that at the end of wxEntry,
LK> something X-related is not being de-allocated properly.
It would make sense to suppose that XOpenDisplay() only leaks if
XCloseDisplay() hasn't been called. The trouble is that I don't see where
is XCloseDisplay() called at all, it seems that wxX11 always leaks the
display pointer. It would really make sense to me if display was closed in
~wxApp. Am I missing anything?
LK> I'd be most grateful. I've attempted to compile WxX11 2.7.1, but there
LK> were compile errors with missing headers
You need X11 development headers, e.g. libx11-dev[el] package or something
like that.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list