Commit 90747d89 authored by Jan Möbius's avatar Jan Möbius

Fixed small picking memory leak due to wrong delete operator

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10459 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d6d1e5ba
......@@ -631,7 +631,7 @@ bool glViewer::pick_region( ACG::SceneGraph::PickTarget _pickTarg
}
}
delete buffer;
delete[] buffer;
_list = found.toList();
// unbind pick cache
......@@ -804,7 +804,7 @@ bool glViewer::pick_region( ACG::SceneGraph::PickTarget _pickTarg
}
}
delete buffer;
delete[] buffer;
//_list = found.toList();
// unbind pick cache
......@@ -976,7 +976,8 @@ bool glViewer::pick_region( ACG::SceneGraph::PickTarget _pickTarg
}
}
delete buffer;
delete[] buffer;
delete[] depths;
//_list = found.toList();
// unbind pick cache
......@@ -1152,7 +1153,8 @@ bool glViewer::pick_region( ACG::SceneGraph::PickTarget _pickTarg
}
}
delete buffer;
delete[] buffer;
delete[] depths;
//_list = found.toList();
// unbind pick cache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment