Skip to content

Commit

Permalink
Fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 14, 2011
1 parent 420d8f6 commit 3279e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/osgviewerWX/osgviewerWX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3279e9a

Please sign in to comment.