Skip to content

Conversation

@DanielDewberry
Copy link
Contributor

@DanielDewberry DanielDewberry commented Jul 28, 2020

In the Iterator C++ example, added delete operations of it and it2 at the end of void ClientCode() to free memory allocated by:

Iterator<int, Container> *it = cont.CreateIterator();
Iterator<Data, Container> *it2 = cont2.CreateIterator();

Refactoring Guru ticket number: Ticket ID: #1594

Regards

Daniel

Adding delete operations at the end of void ClientCode() to free memory allocated by:

Iterator<int, Container<int>> *it = cont.CreateIterator();
Iterator<Data, Container<Data>> *it2 = cont2.CreateIterator();
@neochief
Copy link
Contributor

This is great! Thanks for your help!

@neochief neochief merged commit 2abb1fd into RefactoringGuru:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants