The exception handling of getter is wrong. The function has to release
the allocated memory if Out-of-Memory error occurs.
Change-Id: I799f3ad9424210c0cae10973523f2022614c4cf0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
[&]()->std::string {
std::string r;
r += "_E(\"Failed to clone " + id + "\");" + NLine(1);
- r += GetFinalizeString(id, type, "h->") + NLine(1);
- r += GetSetterString("h->" + id, "NULL") + NLine(1);
+ r += GetFinalizeString("*" + id, type, "") + NLine(1);
+ r += GetSetterString("*" + id, "NULL") + NLine(1);
r += "return -1;";
return r;
});