diff --git a/src/ImGui.NET.SampleProgram.XNA/ImGui.NET.SampleProgram.XNA.csproj b/src/ImGui.NET.SampleProgram.XNA/ImGui.NET.SampleProgram.XNA.csproj index d360c32..03b2d45 100644 --- a/src/ImGui.NET.SampleProgram.XNA/ImGui.NET.SampleProgram.XNA.csproj +++ b/src/ImGui.NET.SampleProgram.XNA/ImGui.NET.SampleProgram.XNA.csproj @@ -20,7 +20,7 @@ - + diff --git a/src/ImGui.NET.SampleProgram.XNA/Program.cs b/src/ImGui.NET.SampleProgram.XNA/Program.cs index 4e1aeee..9c5b37f 100644 --- a/src/ImGui.NET.SampleProgram.XNA/Program.cs +++ b/src/ImGui.NET.SampleProgram.XNA/Program.cs @@ -4,7 +4,7 @@ { public static void Main(string[] args) { - new SampleGame().Run(); + using (var game = new SampleGame()) game.Run(); } } } \ No newline at end of file