On Thursday 28 November 2002 9:43 am, Lars Gullik Bjønnes wrote: > What string literal? > > fl_realloc is trying to free ob->label not label. > > my Q is what is ob->label set to? is it initialized?
Yes. All this suggests that the "const char *label" passed to xforms is rubbish. Ie, the problem is ours, not xforms. Perhaps that's not so surprising really. Angus FL_OBJECT * fl_make_object(int objclass, int type, FL_Coord x, FL_Coord y, FL_Coord w, FL_Coord h, const char *label, FL_HANDLEPTR handle) { ... if (!label) label = ""; ob->label = fl_strdup(label); ... } char * fl_strdup(const char *s) { char *p = fl_malloc(1 + strlen(s)); return p ? strcpy(p, s) : p; }