summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerUpdateQueue.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-03-02 13:23:16 -0800
committerJohn Reck <jreck@google.com>2017-03-02 13:30:15 -0800
commitfc29f7acd1352efa97269b5f3856eb879d5cfd53 (patch)
treebca5e58917a15e5f3ee37aed0dd3823c8e941c80 /libs/hwui/LayerUpdateQueue.h
parentd632305e376c899f6d5cbcaa441350c310b9fe44 (diff)
Fix potential use-after-free in LayerUpdateQueue
Change-Id: I090af2191576175b165a9db574a80123c16f0778 Fixes: 26548204 Test: Builds & hwui unit tests pass
Diffstat (limited to 'libs/hwui/LayerUpdateQueue.h')
-rw-r--r--libs/hwui/LayerUpdateQueue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/LayerUpdateQueue.h b/libs/hwui/LayerUpdateQueue.h
index 5b1a8543dd0d..38f3596d70df 100644
--- a/libs/hwui/LayerUpdateQueue.h
+++ b/libs/hwui/LayerUpdateQueue.h
@@ -19,6 +19,7 @@
#include "Rect.h"
#include "utils/Macros.h"
+#include <utils/StrongPointer.h>
#include <vector>
#include <unordered_map>
@@ -35,7 +36,7 @@ public:
Entry(RenderNode* renderNode, const Rect& damage)
: renderNode(renderNode)
, damage(damage) {}
- RenderNode* renderNode;
+ sp<RenderNode> renderNode;
Rect damage;
};