summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKrzysztof Kowalczyk <kkowalczyk@gmail.com>2007-09-24 21:26:54 -0700
committerKrzysztof Kowalczyk <kkowalczyk@gmail.com>2007-09-24 21:26:54 -0700
commit70f3bf42b3028d9a2e4aefdc2e1a458b3c77b0e7 (patch)
tree630e13c06c46658dae579c7854bbb0f33eef2f17 /test
parentb622b252cba068a15eae77df5deb261dd98affaf (diff)
Let perf-test.cc manage lifetime of rendered bitmap.
Diffstat (limited to 'test')
-rw-r--r--test/perf-test-preview-win.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/perf-test-preview-win.cc b/test/perf-test-preview-win.cc
index 173a7a55..2d53335e 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 *bmpSplash)
if (!initWinIfNecessary())
return;
- deleteRenderedBitmaps();
gBmpSplash = bmpSplash;
UpdateWindows();
}