Skip to content

Commit

Permalink
[Similarity] Fix one memory leak
Browse files Browse the repository at this point in the history
christofmuc committed Nov 16, 2023
1 parent 5ec4280 commit 79d6543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions The-Orm/SimilarPatchesPanel.cpp
Original file line number Diff line number Diff line change
@@ -72,9 +72,9 @@ void SimilarPatchesPanel::changeListenerCallback(ChangeBroadcaster* source)
long start = vp_tree.speichereMenge(featureSet);
vp_tree.info.startSeite = start;
vp_tree.speichereInfo();
//for (size_t i = 0; i < allPatches.size(); i++) {
// delete features[i];
//}
for (size_t i = 0; i < allPatches.size(); i++) {
delete features[i];
}
delete featureSet;

// Run the VPsearch here

0 comments on commit 79d6543

Please sign in to comment.