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

50:    }    b=(struct signal_data *)g_malloc(sizeof(struct signal_data));    if (b==NULL) -  Pike_error("Out of memory.\n"); +  Pike_error(msg_out_of_mem);    assign_svalue_no_free(&b->cb,cb);    assign_svalue_no_free(&b->args,data);    b->signal_id=g_signal_lookup(signal_name,G_TYPE_FROM_INSTANCE(object));