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:
parent
0aaebddc7b
commit
da5ac8a951
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user