From: Junghoon Park Date: Mon, 2 Apr 2018 07:10:36 +0000 (+0900) Subject: Invoke terminated callbacks before finishing the stub object X-Git-Tag: accepted/tizen/unified/20180405.064422~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ca9c071f55d55bd7885b0c6dcdca7023909a7d2;p=platform%2Fcore%2Fappfw%2Ftidl.git Invoke terminated callbacks before finishing the stub object Change-Id: I7639f34418ea84be9891fd92df63ec56117fa405 Signed-off-by: Junghoon Park --- diff --git a/idlc/cpp_gen/cpp_stub_body_gen_cb.h b/idlc/cpp_gen/cpp_stub_body_gen_cb.h index 09953eb..f5bcb47 100644 --- a/idlc/cpp_gen/cpp_stub_body_gen_cb.h +++ b/idlc/cpp_gen/cpp_stub_body_gen_cb.h @@ -28,6 +28,10 @@ $$::$$() { const char CB_DEFAULT_METHODS[] = R"__cpp_cb( $$::~$$() { + for (auto& i : services_) { + i->OnTerminate(); + } + if (stub_) { rpc_port_stub_destroy(stub_); }