[poppler] 2 commits - test/perf-test.cc test/perf-test-preview-win.cc

Krzysztof Kowalczyk kjk at kemper.freedesktop.org
Mon Sep 24 22:30:30 PDT 2007


 test/perf-test-preview-win.cc |    7 -------
 test/perf-test.cc             |    2 ++
 2 files changed, 2 insertions(+), 7 deletions(-)

New commits:
diff-tree 70f3bf42b3028d9a2e4aefdc2e1a458b3c77b0e7 (from b622b252cba068a15eae77df5deb261dd98affaf)
Author: Krzysztof Kowalczyk <kkowalczyk at gmail.com>
Date:   Mon Sep 24 21:26:54 2007 -0700

    Let perf-test.cc manage lifetime of rendered bitmap.

diff --git a/test/perf-test-preview-win.cc b/test/perf-test-preview-win.cc
index 173a7a5..2d53335 100644
--- a/test/perf-test-preview-win.cc
+++ b/test/perf-test-preview-win.cc
@@ -239,16 +239,10 @@ void PreviewBitmapInit(void)
     /* no need to do anything */
 }
 
-static void deleteRenderedBitmaps()
-{
-    delete gBmpSplash;
-}
-
 void PreviewBitmapDestroy(void)
 {
     PostQuitMessage(0);
     pumpMessages();
-    deleteRenderedBitmaps();
     DeleteObject(gBrushBg);
 }
 
@@ -271,7 +265,6 @@ void PreviewBitmapSplash(SplashBitmap *b
     if (!initWinIfNecessary())
         return;
 
-    deleteRenderedBitmaps();
     gBmpSplash = bmpSplash;
     UpdateWindows();
 }
diff-tree b622b252cba068a15eae77df5deb261dd98affaf (from bde8c9669ca6b43cb6a664bd14df164a718041ea)
Author: Krzysztof Kowalczyk <kkowalczyk at gmail.com>
Date:   Mon Sep 24 21:20:12 2007 -0700

    Disable my_error for now - seems to corrupt memory.

diff --git a/test/perf-test.cc b/test/perf-test.cc
index fe02a74..1f88a2f 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -713,6 +713,7 @@ void OutputDebugString(const char *txt)
 #endif
 
 void my_error(int pos, char *msg, va_list args) {
+#if 0
     char        buf[4096], *p = buf;
 
     // NB: this can be called before the globalParams object is created
@@ -748,6 +749,7 @@ void my_error(int pos, char *msg, va_lis
         if (gErrFile)
             fprintf(gErrFile, "Error: ");
     }
+#endif
 #if 0
     p = buf;
     va_start(args, msg);


More information about the poppler mailing list