Skip to content

Commit

Permalink
Fix memory leak in hotspot (URLs & emails) detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Chi Hsuan committed Mar 19, 2017
1 parent 1fbecac commit 08628fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// Qt
#include <QAction>
#include <QApplication>
#include <QtAlgorithms>
#include <QClipboard>
#include <QString>
#include <QTextStream>
Expand Down Expand Up @@ -194,6 +195,7 @@ Filter::~Filter()
}
void Filter::reset()
{
qDeleteAll(_hotspotList);
_hotspots.clear();
_hotspotList.clear();
}
Expand Down

0 comments on commit 08628fd

Please sign in to comment.