summaryrefslogtreecommitdiff
path: root/ace/Future.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Future.cpp')
-rw-r--r--ace/Future.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Future.cpp b/ace/Future.cpp
index 54592d09c07..c132ba240d3 100644
--- a/ace/Future.cpp
+++ b/ace/Future.cpp
@@ -65,7 +65,12 @@ template <class T> ACE_Future_Rep<T> *
ACE_Future_Rep<T>::create (void)
{
// Yes set ref count to zero.
- return new ACE_Future_Rep<T> ();
+
+ ACE_Future_Rep<T> *temp = 0;
+ ACE_NEW_RETURN (temp,
+ ACE_Future_Rep<T> (),
+ 0);
+ return temp;
}
template <class T> ACE_Future_Rep<T> *