This patch fixes 'use after free' case. The bundle instance is moved
using std::move().
Change-Id: I3e00efdb42038c1a324e3a687678829e6a5b3eaa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
.With(std::move(b))
.SendSimply();
if (type != BUNDLE_TYPE_NONE) {
- b.Delete(AUL_K_COM_ENDPOINT);
- b.Add(AUL_K_COM_ENDPOINT, com_endpoint);
+ bundle_del(envelope, AUL_K_COM_ENDPOINT);
+ bundle_add_str(envelope, AUL_K_COM_ENDPOINT, com_endpoint.c_str());
}
return ret;