Re: GWP doesn't compile (patch included)



On Sun, Dec 27, 1998 at 12:39:00AM -0600, Miguel de Icaza wrote:
> >   I poked around in the gnome_app_remove_menus() code and discovered that
> > it calls gtk_container_remove() on each menu item, followed by
> > gtk_destroy_widget(), but the gtk_destroy_widget() segfaults first time.  Is
> > it possible that gtk_container_remove() destroys the widget, causing
> > gtk_destroy_widget() to free() memory which has already been deallocated, or
> > something like that?  Anyway, this looks like maybe a libgnomeui bug.. (?)
> 
> Yeah, this sounds like a bug.
> 
> When you do a container_remove, GTK+ decreases the reference count on
> the child widget.  

you don't really need to do container_remove .. just destroy the widget

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]