From 3279e9a5f507c3c282163aca0ce38d0349941611 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 14 Sep 2011 10:45:11 +0000 Subject: [PATCH] Fixed memory leak --- examples/osgviewerWX/osgviewerWX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgviewerWX/osgviewerWX.cpp b/examples/osgviewerWX/osgviewerWX.cpp index b9d34f4e3..6cf6ecd7e 100644 --- a/examples/osgviewerWX/osgviewerWX.cpp +++ b/examples/osgviewerWX/osgviewerWX.cpp @@ -45,7 +45,7 @@ bool wxOsgApp::OnInit() // create osg canvas // - initialize - int *attributes = new int[7]; + int attributes[7]; attributes[0] = int(WX_GL_DOUBLEBUFFER); attributes[1] = WX_GL_RGBA; attributes[2] = WX_GL_DEPTH_SIZE;