Merge pull request #561 from ZobyTwo/valgrind
Fix some valgrind memcheck warnings. However there remains one... ... within the threaded texture cache. Once it is resized, some textures in GetQuad(...) (WCachedResource.cpp:102/103) have uninitialized widths/heights.
This commit is contained in:
@@ -1188,10 +1188,11 @@ bool GameOptionKeyBindings::read(string input)
|
|||||||
iss.get(*(s.rdbuf()), ',');
|
iss.get(*(s.rdbuf()), ',');
|
||||||
iss.get();
|
iss.get();
|
||||||
|
|
||||||
LocalKeySym local;
|
LocalKeySym local = 0;
|
||||||
char sep;
|
char sep = 0;
|
||||||
u32 button;
|
u32 button = 0;
|
||||||
s >> local >> sep >> button;
|
s >> local >> sep >> button;
|
||||||
|
|
||||||
if (':' != sep)
|
if (':' != sep)
|
||||||
return false;
|
return false;
|
||||||
assoc.push_back(make_pair(local, u32_to_button(button)));
|
assoc.push_back(make_pair(local, u32_to_button(button)));
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ GameStateMenu::GameStateMenu(GameApp* parent) :
|
|||||||
scroller = NULL;
|
scroller = NULL;
|
||||||
langChoices = false;
|
langChoices = false;
|
||||||
primitivesLoadCounter = -1;
|
primitivesLoadCounter = -1;
|
||||||
|
bgTexture = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GameStateMenu::~GameStateMenu()
|
GameStateMenu::~GameStateMenu()
|
||||||
|
|||||||
Reference in New Issue
Block a user