summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/plugin/Plugin.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-02-26 14:06:50 +0100
committerBenoit Foucher <benoit@zeroc.com>2013-02-26 14:06:50 +0100
commit8f657a067534826d24b6630e88f61c0c0e6521ef (patch)
tree677c32d4ab992b9a8f3bd94af5cd963c8211280e /cpp/test/Ice/plugin/Plugin.cpp
parentFixed mis-named property in CHANGES (diff)
downloadice-8f657a067534826d24b6630e88f61c0c0e6521ef.tar.bz2
ice-8f657a067534826d24b6630e88f61c0c0e6521ef.tar.xz
ice-8f657a067534826d24b6630e88f61c0c0e6521ef.zip
Fixed test leaks detected by valgrind
Diffstat (limited to 'cpp/test/Ice/plugin/Plugin.cpp')
-rw-r--r--cpp/test/Ice/plugin/Plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/test/Ice/plugin/Plugin.cpp b/cpp/test/Ice/plugin/Plugin.cpp
index 73d86e38930..6ea8d89303b 100644
--- a/cpp/test/Ice/plugin/Plugin.cpp
+++ b/cpp/test/Ice/plugin/Plugin.cpp
@@ -279,6 +279,8 @@ public:
//
test(!_three->isDestroyed());
_destroyed = true;
+ _two = 0;
+ _three = 0;
}
~PluginOneFail()
@@ -313,6 +315,8 @@ public:
{
_destroyed = true;
test(!_one->isDestroyed());
+ _one = 0;
+ _three = 0;
}
~PluginTwoFail()