commit | a15eedd266af3229217bfd45e6fec0001336279a | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Mon May 04 09:44:28 2015 -0700 |
committer | John Reck <jreck@google.com> | Mon May 04 09:44:28 2015 -0700 |
tree | 145b20eaf28bfea5706f86899054c7fffe4f61ea | |
parent | 05dc201ff64f6324c2726a8841af7021e7071b97 [diff] |
Fix setName use-after-free Bug: 20764439 Change-Id: I7a0f85bb82629b1302db02015fa493dc09eb31f7
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index d15fa39..7c04f40 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -135,7 +135,7 @@ SETUP_TASK(setName); args->context = mContext; args->name = name; - post(task); + postAndWait(task); } CREATE_BRIDGE2(initialize, CanvasContext* context, ANativeWindow* window) {