Removed many memoryleaks in Example Browser, reducing some technical debt.
When running the Example Browser with Basic Example, 'visual leak detector' show no leak. Many other individual examples still leak, so it is work-in-progress. Disabled the profiler window (too many leaks)
This commit is contained in:
@@ -28,22 +28,22 @@ subject to the following restrictions:
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
DummyGUIHelper noGfx;
|
||||
|
||||
CommonExampleOptions options(&noGfx);
|
||||
CommonExampleInterface* example = StandaloneExampleCreateFunc(options);
|
||||
|
||||
example->initPhysics();
|
||||
for (int i=0;i<1000;i++)
|
||||
{
|
||||
printf("Simulating step %d\n",i);
|
||||
example->stepSimulation(1.f/60.f);
|
||||
DummyGUIHelper noGfx;
|
||||
|
||||
CommonExampleOptions options(&noGfx);
|
||||
CommonExampleInterface* example = StandaloneExampleCreateFunc(options);
|
||||
|
||||
example->initPhysics();
|
||||
for (int i = 0; i < 1000; i++)
|
||||
{
|
||||
printf("Simulating step %d\n", i);
|
||||
example->stepSimulation(1.f / 60.f);
|
||||
}
|
||||
example->exitPhysics();
|
||||
|
||||
delete example;
|
||||
}
|
||||
example->exitPhysics();
|
||||
|
||||
delete example;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user