From c563cd034a164dbf0e2a12ab215d09e73608b522 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Sat, 24 Oct 2009 22:49:18 +0200 Subject: [PATCH] delete char array with delete[] --- src/Main/splash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/splash.cxx b/src/Main/splash.cxx index 777317158..403617891 100644 --- a/src/Main/splash.cxx +++ b/src/Main/splash.cxx @@ -185,6 +185,7 @@ static osg::Node* fgCreateSplashCamera() char *namestring = genNameString(); fgSetString("/sim/startup/program-name", namestring); + delete[] namestring; SGPath tpath( globals->get_fg_root() ); if (splash_texture == NULL || !strcmp(splash_texture, "")) { @@ -303,7 +304,6 @@ static osg::Node* fgCreateSplashCamera() text->setPosition(osg::Vec3(0, 0.92, 0)); text->setAlignment(osgText::Text::CENTER_CENTER); prop = fgGetNode("/sim/startup/program-name", "FlightGear"); - delete namestring; text->setUpdateCallback(new FGSplashTextUpdateCallback(prop)); geode->addDrawable(text); -- 2.39.5