From: Zack Rusin Date: Sat, 16 Apr 2011 15:39:24 +0000 (-0400) Subject: delete call after parsing it. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b65a66efc71835f4f4c6dad8fd0c5c2fa90c74eb;p=apitrace delete call after parsing it. --- diff --git a/gui/loaderthread.cpp b/gui/loaderthread.cpp index bc3d32e..1f54744 100644 --- a/gui/loaderthread.cpp +++ b/gui/loaderthread.cpp @@ -56,8 +56,7 @@ void LoaderThread::run() Trace::Parser p; if (p.open(m_fileName.toLatin1().constData())) { - Trace::Call *call; - call = p.parse_call(); + Trace::Call *call = p.parse_call(); while (call) { //std::cout << *call; if (!currentFrame) { @@ -78,6 +77,7 @@ void LoaderThread::run() frames.clear(); } } + delete call; call = p.parse_call(); } }