Fix a memory leak in release with ThreadCollisionWarner unit tests. Less than ideal #ifdef's.
Review URL: http://codereview.chromium.org/19018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8724 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/thread_collision_warner_unittest.cc b/base/thread_collision_warner_unittest.cc
index 93a74e5..69e85f0 100644
--- a/base/thread_collision_warner_unittest.cc
+++ b/base/thread_collision_warner_unittest.cc
@@ -114,9 +114,12 @@
    public:
     explicit NonThreadSafeQueue(base::AsserterBase* asserter)
 #if !defined(NDEBUG)
-        : push_pop_(asserter)
+        : push_pop_(asserter) {
+#else
+    {
+      delete asserter;
 #endif
-    { }
+    }
 
     void push(int value) {
       DFAKE_SCOPED_LOCK_THREAD_LOCKED(push_pop_);
@@ -177,9 +180,12 @@
    public:
     explicit NonThreadSafeQueue(base::AsserterBase* asserter)
 #if !defined(NDEBUG)
-        : push_pop_(asserter)
+        : push_pop_(asserter) {
+#else
+    {
+      delete asserter;
 #endif
-    { }
+    }
 
     void push(int value) {
       DFAKE_SCOPED_LOCK(push_pop_);
@@ -241,9 +247,12 @@
    public:
     explicit NonThreadSafeQueue(base::AsserterBase* asserter)
 #if !defined(NDEBUG)
-        : push_pop_(asserter)
+        : push_pop_(asserter) {
+#else
+    {
+      delete asserter;
 #endif
-    { }
+    }
 
     void push(int value) {
       DFAKE_SCOPED_LOCK(push_pop_);
@@ -312,9 +321,12 @@
    public:
     explicit NonThreadSafeQueue(base::AsserterBase* asserter)
 #if !defined(NDEBUG)
-        : push_pop_(asserter)
+        : push_pop_(asserter) {
+#else
+    {
+      delete asserter;
 #endif
-    { }
+    }
 
     void push(int) {
       DFAKE_SCOPED_RECURSIVE_LOCK(push_pop_);