You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to have a careful look at our destructors for various data structures. One user used the destructor for Graphs using this method and it crashed. Need to look at memory issues for all classes.
The text was updated successfully, but these errors were encountered:
Added a destructor for GraphAdjList - deallocates the vertex elements and adj list elements (both are pointers to allocated memory) and clears the maps. If the graph is allocated by the user, then he/she is responsible for freeing it.
The tests work, but perhaps need more careful testing.
DataStructure::cleanup()
Need to have a careful look at our destructors for various data structures. One user used the destructor for Graphs using this method and it crashed. Need to look at memory issues for all classes.
The text was updated successfully, but these errors were encountered: