summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-27 17:19:05 +0000
committerrubidium <rubidium@openttd.org>2007-06-27 17:19:05 +0000
commit926d103482b92bb345f27d0e773f3289803ad6bd (patch)
treeb0d20222e199028e6c7ebc3a16cb76e98d6ef1b4 /src/blitter
parent0ab80d824b9f1935871eb165961900c368216ad3 (diff)
downloadopenttd-926d103482b92bb345f27d0e773f3289803ad6bd.tar.xz
(svn r10358) -Codechange: remove the cargopacket leakchecker as it never asserted in almost a week of stresstesting, so I'm pretty sure all cornercases are tested by now.
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/factory.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index a55250071..8f289c2ce 100644
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -64,6 +64,7 @@ public:
BlitterFactoryBase *b = (*it).second;
if (strcasecmp(name, b->name) == 0) {
Blitter *newb = b->CreateInstance();
+ delete *GetActiveBlitter();
*GetActiveBlitter() = newb;
return newb;
}