diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp index 83e013130..8ae86b0af 100644 --- a/src/osgDB/FileUtils.cpp +++ b/src/osgDB/FileUtils.cpp @@ -294,7 +294,7 @@ char *osgDB::findDSO( const char *name ) strcat(prependosgPlugins,name); fileFound = findFileInPath( prependosgPlugins , path ); - delete prependosgPlugins; + delete [] prependosgPlugins; return fileFound; #else // defined macintosh