more auto_ptr

SVN revision: 61600
This commit is contained in:
Andreas Volz 2011-07-22 22:41:04 +00:00
parent 2de74a1dc2
commit 0ed0480ac3
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include <cmath>
#include <iostream>
#include <memory>
using namespace std;
using namespace Eflxx;
@ -114,8 +115,8 @@ public:
int main( int argc, const char **argv )
{
TimerApp* app = new TimerApp( argc, argv );
auto_ptr <TimerApp> app (new TimerApp( argc, argv ));
app->exec();
delete app;
return 0;
}