Fixed Font::operator= not handling the reference counter properly (which was leading to crashes after copies of sf::Font instances)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1414 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-02-19 14:38:29 +00:00
parent 0aaebddc7b
commit da5ac8a951

View File

@ -239,6 +239,7 @@ Font& Font::operator =(const Font& right)
std::swap(myPages, temp.myPages); std::swap(myPages, temp.myPages);
std::swap(myPixelBuffer, temp.myPixelBuffer); std::swap(myPixelBuffer, temp.myPixelBuffer);
std::swap(myCurrentSize, temp.myCurrentSize); std::swap(myCurrentSize, temp.myCurrentSize);
std::swap(myRefCount, temp.myRefCount);
return *this; return *this;
} }