summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TAO/tests/OBV/ValueBox/client.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/TAO/tests/OBV/ValueBox/client.cpp b/TAO/tests/OBV/ValueBox/client.cpp
index e411e82852b..019d5b5469f 100644
--- a/TAO/tests/OBV/ValueBox/client.cpp
+++ b/TAO/tests/OBV/ValueBox/client.cpp
@@ -545,7 +545,7 @@ int test_boxed_sequence (void)
VBseqlong (),
1);
- VBseqlong *temp;
+ VBseqlong *temp = 0;
ACE_NEW_RETURN (temp,
VBseqlong (),
1);
@@ -562,7 +562,7 @@ int test_boxed_sequence (void)
longarray[2] = 303;
// Create a sequence
- TDseqlong *temp2;
+ TDseqlong *temp2 = 0;
ACE_NEW_RETURN (temp2,
TDseqlong(10, 3, longarray, 1),
1);
@@ -610,7 +610,6 @@ int test_boxed_sequence (void)
// release
vbseqlong1->_remove_ref ();
- vbseqlong3->_remove_ref ();
vbseqlong4->_remove_ref ();
return fail;
@@ -792,9 +791,8 @@ int test_boxed_struct (void)
}
//
- // valuebox1, valuebox2, and valuebox3 must be explicitly removed.
+ // valuebox1 and valuebox3 must be explicitly removed.
CORBA::remove_ref (valuebox1);
- CORBA::remove_ref (valuebox2);
CORBA::remove_ref (valuebox3);
//