Commit b7e6c397 authored by hjk's avatar hjk
Browse files

Fix small leak on exit.

I am not even sure we should do that.
parent 8b018225
...@@ -231,6 +231,11 @@ BreakHandler::BreakHandler(QObject *parent) ...@@ -231,6 +231,11 @@ BreakHandler::BreakHandler(QObject *parent)
{ {
} }
BreakHandler::~BreakHandler()
{
clear();
}
int BreakHandler::columnCount(const QModelIndex &parent) const int BreakHandler::columnCount(const QModelIndex &parent) const
{ {
return parent.isValid() ? 0 : 6; return parent.isValid() ? 0 : 6;
......
...@@ -113,6 +113,7 @@ class BreakHandler : public QAbstractItemModel ...@@ -113,6 +113,7 @@ class BreakHandler : public QAbstractItemModel
public: public:
explicit BreakHandler(QObject *parent = 0); explicit BreakHandler(QObject *parent = 0);
~BreakHandler();
void removeAllBreakpoints(); void removeAllBreakpoints();
void setAllPending(); void setAllPending();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment