[Iup-users] Memory question again.

Jeremy Cowgar jeremy at cowgar.com
Tue Nov 6 15:10:47 GMT+3 2007


Let's say I do this:

void doSomething ()
{
  char *value = malloc (sizeof (char) * 10);
  strcpy (value, "HELLO");
  IupSetAttribute (textWidget, IUP_VALUE, value);
}


So, I call doSomething() somewhere in my code. Later, I call it again. 
Does Iup free the memory before setting the attribute again?

Jeremy






More information about the iup-users mailing list