Branch: Tag:

2008-01-30

2008-01-30 13:29:55 by Per Hedbor <ph@opera.com>

Tried to clean up the memory handling. At least valgrind is reasonably silent now. :-) This should actually be done for GTK1 too, but it's not as essential.

Rev: src/post_modules/GTK2/build_pgtk.pike:1.14
Rev: src/post_modules/GTK2/pgtk.h:1.18
Rev: src/post_modules/GTK2/source/gdkbitmap.pre:1.7
Rev: src/post_modules/GTK2/source/gdkcolor.pre:1.6
Rev: src/post_modules/GTK2/source/gdkcolormap.pre:1.5
Rev: src/post_modules/GTK2/source/gdkdisplay.pre:1.11
Rev: src/post_modules/GTK2/source/gdkdragcontext.pre:1.5
Rev: src/post_modules/GTK2/source/gdkevent.pre:1.11
Rev: src/post_modules/GTK2/source/gdkgc.pre:1.15
Rev: src/post_modules/GTK2/source/gdkimage.pre:1.7
Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.21
Rev: src/post_modules/GTK2/source/gdkpixbufanimation.pre:1.6
Rev: src/post_modules/GTK2/source/gdkpixmap.pre:1.6
Rev: src/post_modules/GTK2/source/gdkrectangle.pre:1.9
Rev: src/post_modules/GTK2/source/gdkregion.pre:1.5
Rev: src/post_modules/GTK2/source/gdkscreen.pre:1.8
Rev: src/post_modules/GTK2/source/gdkvisual.pre:1.3
Rev: src/post_modules/GTK2/source/gdkwindow.pre:1.7
Rev: src/post_modules/GTK2/source/gtkcelllayout.pre:1.5
Rev: src/post_modules/GTK2/source/gtkcellview.pre:1.11
Rev: src/post_modules/GTK2/source/gtkclipboard.pre:1.6
Rev: src/post_modules/GTK2/source/gtkcolorbutton.pre:1.10
Rev: src/post_modules/GTK2/source/gtkiconinfo.pre:1.6
Rev: src/post_modules/GTK2/source/gtkicontheme.pre:1.8
Rev: src/post_modules/GTK2/source/gtkpapersize.pre:1.4
Rev: src/post_modules/GTK2/source/gtkrecentinfo.pre:1.5
Rev: src/post_modules/GTK2/source/gtktextattributes.pre:1.8
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.12
Rev: src/post_modules/GTK2/source/gtktextmark.pre:1.7
Rev: src/post_modules/GTK2/source/gtktextview.pre:1.9
Rev: src/post_modules/GTK2/source/gtktreeiter.pre:1.6
Rev: src/post_modules/GTK2/source/gtktreepath.pre:1.9
Rev: src/post_modules/GTK2/source/gtktreerowreference.pre:1.7
Rev: src/post_modules/GTK2/source/gtktreeview.pre:1.11
Rev: src/post_modules/GTK2/source/pangocontext.pre:1.7
Rev: src/post_modules/GTK2/source/pangofontdescription.pre:1.8
Rev: src/post_modules/GTK2/source/pangolayoutiter.pre:1.7
Rev: src/post_modules/GTK2/source/pangotabarray.pre:1.7
Rev: src/post_modules/GTK2/source/support.c:1.20

21:      void destroy()   { -  if( THIS->obj ) +  if( THIS->obj && THIS->owned )    g_free( THIS->obj );    THIS->obj = 0;    pgtk2_pop_n_elems(args);
211:    if( is_same_string(index,_STR("context")) )    {    pop_n_elems( args ); -  push_gdkobject( e->dnd.context, drag_context); +  push_gdkobject( e->dnd.context, drag_context, 0);    return;    }    break;
481:    ref_push_string(_STR("send_event")); push_int( e->dnd.send_event );    ref_push_string(_STR("x_root")); push_int( e->dnd.x_root );    ref_push_string(_STR("y_root")); push_int( e->dnd.y_root ); -  ref_push_string(_STR("context"));push_gdkobject( e->dnd.context, drag_context); +  ref_push_string(_STR("context"));push_gdkobject( e->dnd.context, drag_context, 0);    break;    }    f_aggregate_mapping( Pike_sp - osp );