forked from qt-creator/qt-creator
QmlProfiler: Fix memory leak
Change-Id: Ieed04f3a11d2685de55b70ab501969778f6fc1dd Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
committed by
Christiaan Janssen
parent
d014c2ca4b
commit
de07c16a71
@@ -329,6 +329,7 @@ QmlProfilerEventList::QmlProfilerEventList(QObject *parent) :
|
|||||||
QmlProfilerEventList::~QmlProfilerEventList()
|
QmlProfilerEventList::~QmlProfilerEventList()
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerEventList::clear()
|
void QmlProfilerEventList::clear()
|
||||||
|
@@ -283,6 +283,7 @@ QmlProfilerEventsMainView::~QmlProfilerEventsMainView()
|
|||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
delete d->m_model;
|
delete d->m_model;
|
||||||
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerEventsMainView::setEventStatisticsModel( QmlProfilerEventList *model )
|
void QmlProfilerEventsMainView::setEventStatisticsModel( QmlProfilerEventList *model )
|
||||||
|
Reference in New Issue
Block a user