From da5ac8a9512885c5b245a24915733c3b26f689b7 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Fri, 19 Feb 2010 14:38:29 +0000 Subject: [PATCH] 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 --- src/SFML/Graphics/Font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 6441b891..5d7c2477 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/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; }