Hi,

I tried what you suggested (g_free) but it doesn't work (I get a
segmentation fault).

static does not change my problem too.

Any suggestion is welcome .

Thank you

Philippe





                                                                                       
                                                               
                    Calin Vatavu                                                       
                                                               
                    <[EMAIL PROTECTED]        To:     [EMAIL PROTECTED]     
                                                               
                    >                            cc:                                   
                                                               
                    Sent by:                     Subject:     Re: [Glade-devel] 
gtk_style_new eats my memory                                          
                    glade-devel-admin@hel                                              
                                                               
                    ixcode.com                                                         
                                                               
                                                                                       
                                                               
                                                                                       
                                                               
                    02/09/01 03:18 PM                                                  
                                                               
                    Please respond to                                                  
                                                               
                    cvatavu                                                            
                                                               
                                                                                       
                                                               
                                                                                       
                                                               




> The  function works fine except it eats some memory every it is called (I
> can monitor this with top command).
> Do I have to to a free (style) ???
>

Yes, you have to free it (with g_free I believe), but it's better
to make it static:
..
      static GtkStyle       * style=0;

      if (!style) {style=gtk_style_new();}
..
It's faster, but non-reentrant

Calin


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel




_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to