jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Implement destructors #181

Open jamesjuett opened 4 years ago

jamesjuett commented 4 years ago

Everything leaks memory right now T-T

Need to make sure declaration/definition of constructors works as expected, however the main work will be ensuring that destructors are called in all the appropriate places.

Even though new/delete are not implemented at the time of writing this issue, this still affects standard library classes that use dynamic memory directly (by calling the appropriate allocate/destroy functions on the heap).

If new/delete happen to be implemented before this issue is resolved (not likely), delete also needs to call the dtor.