Added protected d-tor to sf::NonCopyable to prevent possible resource leaks.

This commit is contained in:
Lukas Dürrenberger 2016-10-13 23:41:15 +02:00
parent 67ef694443
commit 77d19859bc

View File

@ -52,6 +52,16 @@ protected:
////////////////////////////////////////////////////////////
NonCopyable() {}
////////////////////////////////////////////////////////////
/// \brief Default destructor
///
/// By declaring a protected destructor it's impossible to
/// call delete on a pointer of sf::NonCopyable, thus
/// preventing possible resource leaks.
///
////////////////////////////////////////////////////////////
~NonCopyable() {}
private:
////////////////////////////////////////////////////////////