If I understand you you want to delete a custom struct ?
if so use free(YOUR_STRUCT);

as for the Text thing I am not sure I understand you but I think should help you with it.

STRING* myString;
STRING* txtString;

TEXT* txt_object =
{
string(txtString);
}

to copy the contents of string to the struct

str_cpy((txt_object .pstring)[0], myString);

This way when you delete the text it will not effect your string


John C Leutz II