[wx 2.6.2, GTK+ 2, GCC 4.1.0] Memory leaks
Dan Matějka
Dan.Matejka at volny.cz
Thu Oct 5 10:13:11 PDT 2006
Hi, I started today with wxWindows. I get folowing example from a
tutorial. After that I run the program with valgrind and get folowing
output. It's a quite big memory leak for so simple program. Am I
forgetting to run some command or it is a failure of wxWindows?
Thanks Dan
#include "wx/wx.h"
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
class MyFrame : public wxFrame
{
public:
MyFrame(const wxString& title);
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
private:
DECLARE_EVENT_TABLE()
};
DECLARE_APP(MyApp)
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
MyFrame *frame = new MyFrame(wxT("Minimal wxWidgets App"));
frame->Show(true);
return true;
}
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(wxID_ABOUT, MyFrame::OnAbout)
EVT_MENU(wxID_EXIT, MyFrame::OnQuit)
END_EVENT_TABLE()
void MyFrame::OnAbout(wxCommandEvent& event)
{
wxString msg;
msg.Printf(wxT("Hello and welcome to %s"), wxVERSION_STRING);
wxMessageBox(msg, wxT("About Minimal"), wxOK|wxICON_INFORMATION, this);
}
void MyFrame::OnQuit(wxCommandEvent& event)
{
Close();
}
MyFrame::MyFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title)
{
wxMenu *fileMenu = new wxMenu;
wxMenu *helpMenu = new wxMenu;
helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1"), wxT("Show about
dialog"));
fileMenu->Append(wxID_EXIT, wxT("E&xit\tAlt-X"), wxT("Quit this program"));
wxMenuBar *menuBar = new wxMenuBar();
menuBar->Append(fileMenu, wxT("&File"));
menuBar->Append(helpMenu, wxT("&Help"));
SetMenuBar(menuBar);
CreateStatusBar(2);
SetStatusText(wxT("Welcome to wxWidgets!"));
}
==18578== Memcheck, a memory error detector.
==18578== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==18578== Using LibVEX rev 1575, a library for dynamic binary translation.
==18578== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==18578== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==18578== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==18578== For more details, rerun with: -v
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6E60: _XReply (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73B319D: XInternAtom (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73CECE2: XSetWMProperties (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68D12C0: (within
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x68D38CD: gdk_window_new (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x68B26D0: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E080 is 128 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param writev(vector[...]) points to uninitialised byte(s)
==18578== at 0x60AACB6: do_writev (in /lib64/libc-2.4.so)
==18578== by 0x73E257B: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6AEE: _XSend (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73BB716: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73BB8B1: XPutImage (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x8991C3F: XcursorImageLoadCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x89926CB: XcursorImagesLoadCursors (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x89927E3: XcursorImagesLoadCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x8995A5E: XcursorTryShapeCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x73A75F3: XCreateGlyphCursor (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73A7B50: XCreateFontCursor (in
/usr/X11R6/lib64/libX11.so.6.2)==18578== by 0x68B188B:
gdk_cursor_new_for_display (in /opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== Address 0x960E1D0 is 464 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73AA599: XFlush (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68AA607: gdk_window_process_all_updates (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x64ED084: (within
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x7A382B9: g_main_context_dispatch (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B344: (within /opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B654: g_main_loop_run (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x65711C2: gtk_main (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52F8820: wxEventLoop::Run() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x538589A: wxAppBase::MainLoop() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E509 is 1,289 bytes inside a block of size
16,384 alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C7EB4: _XEventsQueued (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73B83EC: XPending (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68BC1CA: (within
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x7A3A8E4: g_main_context_prepare (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3AFD0: (within /opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B654: g_main_loop_run (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x65711C2: gtk_main (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52F8820: wxEventLoop::Run() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x538589A: wxAppBase::MainLoop() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E021 is 33 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)==18578== Memcheck, a memory
error detector.
==18578== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==18578== Using LibVEX rev 1575, a library for dynamic binary translation.
==18578== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==18578== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==18578== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==18578== For more details, rerun with: -v
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6E60: _XReply (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73B319D: XInternAtom (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73CECE2: XSetWMProperties (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68D12C0: (within
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x68D38CD: gdk_window_new (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x68B26D0: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E080 is 128 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param writev(vector[...]) points to uninitialised byte(s)
==18578== at 0x60AACB6: do_writev (in /lib64/libc-2.4.so)
==18578== by 0x73E257B: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6AEE: _XSend (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73BB716: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73BB8B1: XPutImage (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x8991C3F: XcursorImageLoadCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x89926CB: XcursorImagesLoadCursors (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x89927E3: XcursorImagesLoadCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x8995A5E: XcursorTryShapeCursor (in
/usr/X11R6/lib64/libXcursor.so.1.0.2)
==18578== by 0x73A75F3: XCreateGlyphCursor (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73A7B50: XCreateFontCursor (in
/usr/X11R6/lib64/libX11.so.6.2)==18578== by 0x68B188B:
gdk_cursor_new_for_display (in /opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== Address 0x960E1D0 is 464 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73AA599: XFlush (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68AA607: gdk_window_process_all_updates (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x64ED084: (within
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x7A382B9: g_main_context_dispatch (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B344: (within /opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B654: g_main_loop_run (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x65711C2: gtk_main (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52F8820: wxEventLoop::Run() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x538589A: wxAppBase::MainLoop() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E509 is 1,289 bytes inside a block of size
16,384 alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== Syscall param write(buf) points to uninitialised byte(s)
==18578== at 0x5EE7E90: __write_nocancel (in /lib64/libpthread-2.4.so)
==18578== by 0x73E25BE: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C6D2E: (within /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73C7EB4: _XEventsQueued (in
/usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x73B83EC: XPending (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68BC1CA: (within
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x7A3A8E4: g_main_context_prepare (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3AFD0: (within /opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x7A3B654: g_main_loop_run (in
/opt/gnome/lib64/libglib-2.0.so.0.800.5)
==18578== by 0x65711C2: gtk_main (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52F8820: wxEventLoop::Run() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x538589A: wxAppBase::MainLoop() (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== Address 0x960E021 is 33 bytes inside a block of size 16,384
alloc'd
==18578== at 0x4A1FA98: calloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18578== by 0x73B6FE6: XOpenDisplay (in /usr/X11R6/lib64/libX11.so.6.2)
==18578== by 0x68B2594: gdk_display_open (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6892FAC: gdk_display_open_default_libgtk_only (in
/opt/gnome/lib64/libgdk-x11-2.0.so.0.800.10)
==18578== by 0x6571683: gtk_init_check (in
/opt/gnome/lib64/libgtk-x11-2.0.so.0.800.10)
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== ERROR SUMMARY: 92 errors from 4 contexts (suppressed: 17 from 1)
==18578== malloc/free: in use at exit: 1,628,960 bytes in 24,057 blocks.
==18578== malloc/free: 194,034 allocs, 169,977 frees, 83,375,205 bytes
allocated.
==18578== For counts of detected errors, rerun with: -v
==18578== searching for pointers to 24,057 not-freed blocks.
==18578== checked 3,315,784 bytes.
==18578==
==18578== LEAK SUMMARY:
==18578== definitely lost: 2,688 bytes in 41 blocks.
==18578== possibly lost: 1,600 bytes in 20 blocks.
==18578== still reachable: 1,624,672 bytes in 23,996 blocks.
==18578== suppressed: 0 bytes in 0 blocks.
==18578== Use --leak-check=full to see details of leaked memory.
==18578== by 0x52E0D41: wxApp::Initialize(int&, wchar_t**) (in
/usr/lib64/libwx_gtk2u_core-2.6.so.0.2.0)
==18578== by 0x58BC1AE: wxEntryStart(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x58BC3EA: wxEntry(int&, wchar_t**) (in
/usr/lib64/libwx_baseu-2.6.so.0.2.0)
==18578== by 0x408B0B: (within /home/dan/src/C++/wxWidgets/prvni_pokus)
==18578== by 0x600F153: (below main) (in /lib64/libc-2.4.so)
==18578==
==18578== ERROR SUMMARY: 92 errors from 4 contexts (suppressed: 17 from 1)
==18578== malloc/free: in use at exit: 1,628,960 bytes in 24,057 blocks.
==18578== malloc/free: 194,034 allocs, 169,977 frees, 83,375,205 bytes
allocated.
==18578== For counts of detected errors, rerun with: -v
==18578== searching for pointers to 24,057 not-freed blocks.
==18578== checked 3,315,784 bytes.
==18578==
==18578== LEAK SUMMARY:
==18578== definitely lost: 2,688 bytes in 41 blocks.
==18578== possibly lost: 1,600 bytes in 20 blocks.
==18578== still reachable: 1,624,672 bytes in 23,996 blocks.
==18578== suppressed: 0 bytes in 0 blocks.
==18578== Use --leak-check=full to see details of leaked memory.
More information about the wx-users
mailing list