diff options
| author | Wilson E. Alvarez | 2017-08-23 20:54:02 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-25 21:12:19 -0400 |
| commit | bd257153dc9748bd9ab3f580437c3a28cc5348ab (patch) | |
| tree | 8fb8c8f601bbae139876c2a6c3cd891b30de6d3a /platform/windows/godot_win.cpp | |
| parent | d9e94fa0c308f8f157e71fb03bab5834308b56ee (diff) | |
| download | godot-bd257153dc9748bd9ab3f580437c3a28cc5348ab.tar.gz godot-bd257153dc9748bd9ab3f580437c3a28cc5348ab.tar.zst godot-bd257153dc9748bd9ab3f580437c3a28cc5348ab.zip | |
Diffstat (limited to 'platform/windows/godot_win.cpp')
| -rw-r--r-- | platform/windows/godot_win.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/windows/godot_win.cpp b/platform/windows/godot_win.cpp index df2d96e51..6f1fb0470 100644 --- a/platform/windows/godot_win.cpp +++ b/platform/windows/godot_win.cpp @@ -136,8 +136,13 @@ int widechar_main(int argc, wchar_t **argv) { Error err = Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); - if (err != OK) + if (err != OK) { + for (int i = 0; i < argc; ++i) { + delete[] argv_utf8[i]; + } + delete[] argv_utf8; return 255; + } if (Main::start()) os.run(); |
