RenderThread: Make ~IFrameCallback() virtual

IFrameCallback has a pure virtual method, but its destructor was
non-virtual.  While CanvasContext, which inherits from
IFrameCallback, declares its own destructor virtual, this is not
sufficient when accessing via an IFrameCallback pointer.

We fix this by making the base destructor virtual.

Test: Treehugger
Change-Id: I6424f90c16caea417b5f80b60d76a7ca7c7ef97c
This commit is contained in:
Greg Kaiser
2018-08-23 16:58:18 -07:00
parent 0d9029cf3c
commit a95435b836

View File

@@ -59,7 +59,7 @@ public:
virtual void doFrame() = 0;
protected:
~IFrameCallback() {}
virtual ~IFrameCallback() {}
};
struct VsyncSource {