QmlProfiler: Make use of QSharedPointer for TracePlugin

THe plugin might be deleted when the client is deleted.
This commit is contained in:
Kai Koehne
2011-04-14 17:18:32 +02:00
parent 35493c454c
commit 5fee646b5b
2 changed files with 12 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ signals:
void range(int type, qint64 startTime, qint64 length, const QStringList &data, const QString &fileName, int line);
private:
TracePlugin *m_plugin;
QWeakPointer<TracePlugin> m_plugin;
QSize m_sizeHint;
QDeclarativeView *m_view;