memory leaks in GTK 2.8.4 version

MIkhail Tchernychev misha at mail.geometrics.com
Tue Sep 4 10:21:16 PDT 2007


Hi All,

I run "minimal" example under valgrind (using valkyrie front end)  and
this is what I found:

2,040 bytes app.cpp 331


            m_idleTag = 0;
             g_isIdle = true;
    ---- > wxapp_install_idle_handler();

          // this is NULL for a "regular" wxApp, but is set (and freed)
by a wxGLApp
         m_glVisualInfo = (void *) NULL;
         m_glFBCInfo = (void *) NULL;


104,508 bytes in app.cpp 410

        #if wxUSE_THREADS
           if (!g_thread_supported())
---->        g_thread_init(NULL);

         wxgs_poll_func = g_main_context_get_poll_func(NULL);
         g_main_context_set_poll_func(NULL, wxapp_poll_func);
        #endif // wxUSE_THREADS

800 bytes in app.cpp 474

#ifdef __WXGPE__
             init_result = true;  // is there a _check() version of this?
            gpe_application_init( &argcGTK, &argvGTK );
            #else
----->    init_result = gtk_init_check( &argcGTK, &argvGTK );
           #endif


There were some other errors mostly in gtk itself.
I wonder if those above could be safely ignored.

I am running Open SUSE 10.2 version, and compiled wxWidgets version.

Best Regards,
Mikhail




More information about the wx-users mailing list