]> git.cworth.org Git - apitrace/commitdiff
Plug loadertest's leak.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 11 Sep 2011 22:43:44 +0000 (23:43 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 11 Sep 2011 22:43:44 +0000 (23:43 +0100)
Just to get them out of the way of memory debuggers.

loadertest.cpp

index 397187ac42bfddfb4c146e507411d390112738f9..9dc9074240af6b92853a887684585dfc71b520d9 100644 (file)
@@ -21,6 +21,10 @@ static void timeFrameFetch(Trace::Loader &loader, unsigned frameIdx)
               << " is = "
               << (t2 - t1)/msecsInSec
               << " secs "<<std::endl;
+
+    for (unsigned i = 0; i < frame.size(); ++i) {
+        delete frame[i];
+    }
 }