summaryrefslogtreecommitdiff
path: root/examples/Timer_Queue/main_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Timer_Queue/main_thread.cpp')
-rw-r--r--examples/Timer_Queue/main_thread.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/Timer_Queue/main_thread.cpp b/examples/Timer_Queue/main_thread.cpp
index 1eb5b61bbc1..a6311294b9b 100644
--- a/examples/Timer_Queue/main_thread.cpp
+++ b/examples/Timer_Queue/main_thread.cpp
@@ -33,11 +33,10 @@ main (int, char *[])
{
// Auto ptr ensures that the driver memory is released
// automatically.
- auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> driver;
THREAD_TIMER_QUEUE_TEST_DRIVER *tqtd;
-
ACE_NEW_RETURN (tqtd, Thread_Timer_Queue_Test_Driver, -1);
- driver = tqtd;
+
+ auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> driver (tqtd);
return driver->run_test ();
}