Even though you delete the struct the string isn't deleted. Remove the pointer to the string and use the string directly instead.
You can also add a destructor to the struct but avoiding to allocating yourself is better.