Index: athena/activity/activity.cc |
diff --git a/athena/activity/activity.cc b/athena/activity/activity.cc |
index 6a33f02cb33be1877bb43b4e20875f909ae38c8c..1f23837a7db4b2c72f129c6e43f1b756e9920ab9 100644 |
--- a/athena/activity/activity.cc |
+++ b/athena/activity/activity.cc |
@@ -8,8 +8,10 @@ |
namespace athena { |
-Activity::~Activity() { |
- ActivityManager::Get()->RemoveActivity(this); |
oshima
2014/09/04 22:11:01
optional: maybe we should DCHECK to make sure that
Mr4D (OOO till 08-26)
2014/09/04 22:36:52
Ack. There was no need for an ActivityManager::IsA
|
+// static |
+void Activity::Delete(Activity* activity) { |
+ ActivityManager::Get()->RemoveActivity(activity); |
+ delete activity; |
} |
} // namespace athena |