Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the result is successful, then the allocated memory is not cleared. This adds deallocate memory if the result is successful.
- Loading branch information
f5e7991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. Clearly nobody tested this before it was merged.
f5e7991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Joshua-Ashton One might ask. Wrong about what? That the co-creation occurred without checking on the project, which in this situation can not be compiled, or the solution itself is wrong?
f5e7991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, in reviewing this code, I only see a wrong call to
this->Destroy();
when the change is successful.f5e7991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is the issue.
f5e7991
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but what do you mean? or what does it refer to?