Made some changes to ensure consistency with references when it comes to the Garbage Collector
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1713 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
0d7c966d5e
commit
191776fbec
4 changed files with 6 additions and 1 deletions
|
@ -126,7 +126,7 @@ static VALUE Font_GetImage( VALUE self, VALUE aCharacterSize )
|
|||
Data_Get_Struct( self, sf::Font, object );
|
||||
const sf::Image& image = object->GetImage( FIX2UINT( aCharacterSize ) );
|
||||
VALUE rbImage = Data_Wrap_Struct( globalImageClass, 0, 0, const_cast<sf::Image *>( &image ) );
|
||||
rb_iv_set( rbImage, "@__owner__", self );
|
||||
rb_iv_set( rbImage, "@__owner_ref", self );
|
||||
return rbImage;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue