Force PB to free strings?

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Hi,

If I allocate some memory to hold a structure which contains a string and then assign a string to it, what happens to the string memory when I free the memory for the structure? I assume it gets lost to the system until the program quits? Is there any way to get PB to free the string so I can safely free the structure memory?

Thanks.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)