Permalink
Browse files

Fixed Font::operator= not handling the reference counter properly (wh…

…ich 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
  • Loading branch information...
1 parent 0aaebdd commit da5ac8a9512885c5b245a24915733c3b26f689b7 @LaurentGomila LaurentGomila committed Feb 19, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/SFML/Graphics/Font.cpp
@@ -239,6 +239,7 @@ Font& Font::operator =(const Font& right)
std::swap(myPages, temp.myPages);
std::swap(myPixelBuffer, temp.myPixelBuffer);
std::swap(myCurrentSize, temp.myCurrentSize);
+ std::swap(myRefCount, temp.myRefCount);
return *this;
}

0 comments on commit da5ac8a

Please sign in to comment.