From 57288890689bfa2c2d35882169a539813be621f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Sep 2013 00:32:07 +0300 Subject: add RWops leaks reporting. --- src/test/testlauncher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 29b66e20e..82cfd4d6b 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -33,6 +33,7 @@ #include "utils/gettext.h" #include "utils/mkdir.h" +#include "utils/physfscheckutils.h" #include "utils/physfsrwops.h" #include "resources/dye.h" @@ -236,7 +237,7 @@ int TestLauncher::testInternal() int TestLauncher::testDye() { - SDL_RWops *rw = PHYSFSRWOPS_openRead( + SDL_RWops *rw = MPHYSFSRWOPS_openRead( "graphics/sprites/arrow_up.png"); Dye *d = nullptr; @@ -259,7 +260,7 @@ int TestLauncher::testDye() client->getTempDirectory() + "/testimage2.png"); } - rw = PHYSFSRWOPS_openRead( + rw = MPHYSFSRWOPS_openRead( "graphics/sprites/arrow_up.png"); d = new Dye("S:#0000ff,00ff00,5c5cff,ff0000"); image = d ? surfaceImageHelper->load(rw, *d) -- cgit v1.2.3-60-g2f50