summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index acb44b529af..b5c5f1f4c8a 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -3453,9 +3453,11 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p)
C << eb;
C << nl << "catch(const ::Ice::UserException& __ex)";
C << sb;
+ C << nl << "__cleanup();";
C << nl << "ice_exception(__ex);";
C << nl << "return;";
C << eb;
+ C << nl << "__cleanup();";
C << nl << "ice_response" << spar << args << epar << ';';
C << eb;
}