From: Changgyu Choi Date: Wed, 4 Aug 2021 07:03:00 +0000 (+0900) Subject: Fix wrong bundle free. X-Git-Tag: accepted/tizen/unified/20210913.123347~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F262204%2F3;p=platform%2Fcore%2Fappfw%2Ftidl.git Fix wrong bundle free. TIDL c++ codes not copy bundle, when construct Bundle with "Bundle(bundle*)". So bundle* shouldn't be freed after using "Bundle(bundle*)" Change-Id: I9a0e9774bf897086081837e168560d389fa7c71f Signed-off-by: Changgyu Choi --- diff --git a/idlc/gen/cpp_gen_base.cc b/idlc/gen/cpp_gen_base.cc index e05aee0..f901eaf 100644 --- a/idlc/gen/cpp_gen_base.cc +++ b/idlc/gen/cpp_gen_base.cc @@ -577,8 +577,7 @@ std::string CppGeneratorBase::ConvertTypeToDeserializer( if (make_new_type) { ret += "Bundle " + id + "(" + id + "_raw);\n"; } else { - ret += id + " = " + id + "_raw;\n" - + "bundle_free(" + id + "_raw);\n"; + ret += id + " = " + id + "_raw;\n"; } } else if (type.GetMetaType() != nullptr || type.IsUserDefinedType()) { std::string n;