From 5f6b261c9be5c83851a49fd88139adfa6389e500 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 26 Aug 2014 18:14:04 +0100 Subject: [PATCH] Fixed uninitialised fields in ImBitmapFont (were unused when uninitialised, but still dodgy) --- imgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 1e805f7b..a2f48a63 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5030,11 +5030,14 @@ void ImDrawList::AddText(ImFont font, float font_size, const ImVec2& pos, ImU32 ImBitmapFont::ImBitmapFont() { Data = NULL; + DataSize = 0; DataOwned = false; Info = NULL; Common = NULL; Glyphs = NULL; GlyphsCount = 0; + Kerning = NULL; + KerningCount = 0; TabCount = 4; }