diff options
author | Greg Kaiser <gkaiser@google.com> | 2018-08-23 17:02:39 -0700 |
---|---|---|
committer | Greg Kaiser <gkaiser@google.com> | 2018-08-24 06:10:18 -0700 |
commit | 174b50fa506b0d33551670cbc595412bf943113c (patch) | |
tree | c5c6b98f831d06405bac535aa81dfc23c0002fd9 /libs/hwui/TreeInfo.h | |
parent | a95435b836a09084b213ba0809eba7d37825cd5e (diff) |
TreeInfo: Make ~ErrorHandler() virtual
ErrorHandler has a pure virtual function, so we also make its
destructor virtual, to assure any children classes will get
properly destructed.
Test: TreeHugger
Change-Id: Ie072511b450d507f8764b0888d232ffac8f6d6f5
Diffstat (limited to 'libs/hwui/TreeInfo.h')
-rw-r--r-- | libs/hwui/TreeInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/TreeInfo.h b/libs/hwui/TreeInfo.h index b37f2cfe7fee..f2766d6a5b6e 100644 --- a/libs/hwui/TreeInfo.h +++ b/libs/hwui/TreeInfo.h @@ -39,7 +39,7 @@ public: virtual void onError(const std::string& message) = 0; protected: - ~ErrorHandler() {} + virtual ~ErrorHandler() {} }; class TreeObserver { |