From af90f5ef81c95cdec378377c3100a4417e0a1708 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Jul 2011 02:51:48 +0300 Subject: Fix some missing initialisations and memory leakss. --- src/gui/palette.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui') diff --git a/src/gui/palette.h b/src/gui/palette.h index 4a48bd32d..f89b31fca 100644 --- a/src/gui/palette.h +++ b/src/gui/palette.h @@ -155,6 +155,16 @@ class Palette struct ColorElem { + ColorElem() + { + type = 0; + text = ""; + ch = 0; + gradientIndex = 0; + delay = 0; + committedDelay = 0; + } + int type; gcn::Color color; gcn::Color testColor; -- cgit v1.2.3-70-g09d2