Branch: Tag:

2005-12-29

2005-12-29 23:38:16 by Martin Nilsson <mani@lysator.liu.se>

malloc review

Rev: src/post_modules/GTK2/source/gdkgc.pre:1.3
Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.8
Rev: src/post_modules/GTK2/source/gdkrectangle.pre:1.4
Rev: src/post_modules/GTK2/source/gladexml.pre:1.6
Rev: src/post_modules/GTK2/source/global.pre:1.6
Rev: src/post_modules/GTK2/source/gnomecanvas.pre:1.5
Rev: src/post_modules/GTK2/source/gobject.pre:1.5
Rev: src/post_modules/GTK2/source/gtkdatabox.pre:1.4
Rev: src/post_modules/GTK2/source/gtkliststore.pre:1.6
Rev: src/post_modules/GTK2/source/gtksourceiter.pre:1.4
Rev: src/post_modules/GTK2/source/gtksourcelanguage.pre:1.4
Rev: src/post_modules/GTK2/source/gtksourcestylescheme.pre:1.3
Rev: src/post_modules/GTK2/source/gtksourcetag.pre:1.3
Rev: src/post_modules/GTK2/source/gtktextbuffer.pre:1.6
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.7
Rev: src/post_modules/GTK2/source/gtktreemodel.inc:1.5
Rev: src/post_modules/GTK2/source/gtktreestore.pre:1.6

198:    Pike_error ("Expected array with at least one element.\n");    data=g_malloc0(sizeof(char *)*(a->size+1));    if (data==NULL) -  Pike_error("Out of memory.\n"); +  Pike_error(msg_out_of_mem);    for( argc=0; argc<a->size; argc++ )    if (!PGTK_ISSTR(ITEM(a)+argc))    {