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
|
@ -221,6 +221,7 @@ static VALUE Window_GetInput( VALUE self )
|
|||
Data_Get_Struct( self, sf::Window, object );
|
||||
VALUE rbData = Data_Wrap_Struct( globalInputClass, 0, 0, const_cast< sf::Input * >( &object->GetInput() ) );
|
||||
rb_obj_call_init( rbData, 0, 0 );
|
||||
rb_iv_set( rbData, "@__owner_ref", self );
|
||||
return rbData;
|
||||
}
|
||||
|
||||
|
@ -238,6 +239,7 @@ static VALUE Window_GetSettings( VALUE self )
|
|||
Data_Get_Struct( self, sf::Window, object );
|
||||
VALUE rbData = Data_Wrap_Struct( globalContextSettingsClass, 0, 0, const_cast<sf::ContextSettings *>( &object->GetSettings() ) );
|
||||
rb_obj_call_init( rbData, 0, 0 );
|
||||
rb_iv_set( rbData, "@__owner_ref", self );
|
||||
return rbData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue