rem: free( wtext->text.txt );
add: wfree( wtext->text.txt );
context: wTextPutText( WTextInput *wtext, char *txt )  {  int length = strlen(txt);    /* no memory leaks!  free the old txt */  if( wtext->text.txt != NULL )    free( wtext->text.txt );    wtext->text.txt = (char *)wmalloc((length+1)*sizeof(char));  strcpy(wtext->text.txt, txt );  wtext->text.length   = length;  /* By default No text is selected, and the cursor is at the end */  wtext->text.startPos = length;  wtext->text.endPos   = length;  }