Bug 997121 - Mark CompsoitorOGL MOZ_FINAL to prevent future problems with the virtual call in its destructor. r=bjacob

This commit is contained in:
Nicolas Silva 2014-04-28 16:10:35 +02:00
parent 4a884a6fbc
commit 2db4cad49a

View File

@ -154,7 +154,9 @@ protected:
nsTArray<GLuint> mUnusedTextures;
};
class CompositorOGL : public Compositor
// If you want to make this class not MOZ_FINAL, first remove calls to virtual
// methods (Destroy) that are made in the destructor.
class CompositorOGL MOZ_FINAL : public Compositor
{
typedef mozilla::gl::GLContext GLContext;