Fix setName use-after-free

Bug: 20764439
Change-Id: I7a0f85bb82629b1302db02015fa493dc09eb31f7
This commit is contained in:
John Reck
2015-05-04 09:44:28 -07:00
parent 05dc201ff6
commit a15eedd266

View File

@@ -135,7 +135,7 @@ void RenderProxy::setName(const char* name) {
SETUP_TASK(setName);
args->context = mContext;
args->name = name;
post(task);
postAndWait(task);
}
CREATE_BRIDGE2(initialize, CanvasContext* context, ANativeWindow* window) {