From a15eedd266af3229217bfd45e6fec0001336279a Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 4 May 2015 09:44:28 -0700 Subject: [PATCH] Fix setName use-after-free Bug: 20764439 Change-Id: I7a0f85bb82629b1302db02015fa493dc09eb31f7 --- libs/hwui/renderthread/RenderProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index d15fa39417665..7c04f401b1778 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -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) {