From 8d98f6939cbe13e8ba8fcb8821f6a0eab777ea83 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 14 Nov 2013 23:48:19 +0000 Subject: [PATCH] Fixed minor memory leaks (the track.cpp caused warnings to be printed by our leack checker). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14436 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/main.cpp | 3 +++ src/tracks/track.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b7ddba97c..31acf492e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1236,6 +1236,9 @@ void initRest() */ static void cleanSuperTuxKart() { + + delete main_loop; + irr_driver->updateConfigIfRelevant(); if(INetworkHttp::get()) diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index 148fedfeb..c6700b9c9 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -401,6 +401,7 @@ void Track::loadTrackInfo() break; } } + delete easter; } } // loadTrackInfo