X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcontainer.cpp;h=0401af8cc265ce7a6663cc7bb39a41d78fc674b0;hp=47d0e49096786ef0d37aef8ec5c537d4e2df8566;hb=c72238fb7fc6eb081c2a0bc95fff369c760343f4;hpb=d55e0d0f9f17e1706e9751b7e920479f31370f51 diff --git a/src/container.cpp b/src/container.cpp index 47d0e49..0401af8 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -40,6 +40,9 @@ result_container::~result_container() delete res; if (ex) delete ex; + + res = NULL; + ex = NULL; } /** @brief returns the result or throw the carried exception. @@ -49,6 +52,7 @@ result* result_container::get_result(void) { if (result_type==exception) ex->do_throw(); + return res; } @@ -57,6 +61,8 @@ command_container::~command_container() { if (cmd) delete cmd; + + cmd = NULL; } } // namespace libt2n