Fix small leak on exit.

I am not even sure we should do that.
This commit is contained in:
hjk
2008-12-04 11:37:43 +01:00
parent 8b018225b0
commit b7e6c3974f
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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();