core dump due to GTK on fedora core ...

Mikael Magnusson mikma264 at gmail.com
Tue Apr 24 19:42:46 CEST 2007


Cesc wrote:
> Hi,
> 
> This fixes my problem, but I don't think it is the right solution ...
> it is more a hack (don't delete the pointers ... we are shutting down
> anyway).
> 
> Index: minisip/minisip/gui/gtkgui/TrayIcon.cxx
> ===================================================================
> --- minisip/minisip/gui/gtkgui/TrayIcon.cxx     (revision 3252)
> +++ minisip/minisip/gui/gtkgui/TrayIcon.cxx     (working copy)
> @@ -73,9 +73,12 @@
>  }
> 
>  MTrayIcon::~MTrayIcon(){
> -       delete trayMenu;
> -       delete image;
> -
> +       if( trayMenu ) {
> +//             delete trayMenu;
> +       }
> +       if( image ) {
> +//             delete image;
> +       }
> 
>  }

I think not deleting the trayMenu manually is correct since it's managed 
by the Glade framework. Commited to svn.

Mikael


More information about the Minisip-devel mailing list