diff options
Diffstat (limited to 'common/main.cpp')
-rw-r--r-- | common/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/main.cpp b/common/main.cpp index 43fd2e4563..9a43a58212 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -130,12 +130,10 @@ int main(int argc, char *argv[]) OSystem *system = detector.createSystem(); { - char *s = detector.getGameName(); OSystem::Property prop; - prop.caption = s; + prop.caption = detector.getGameName(); system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop); - free(s); } // Create the game engine |