Yes it is. I don't understand why though... this code should be safe:
VALUE rbRenderTarget::SetView( VALUE aSelf, VALUE aView )
{
rbRenderTarget::ToSFML( aSelf )->setView( *rbMacros::ToSFML< sf::View >( aView, rbView::Class ) );
return Qnil;
}
VALUE rbRenderTarget::GetDefaultView( VALUE aSelf )
{
const sf::View& view = rbRenderTarget::ToSFML( aSelf )->getDefaultView();
VALUE obj = rbMacros::ToRuby( const_cast< sf::View* >( &view ), rbView::Class );
rb_iv_set( obj, "@__ref__owner", aSelf );
rb_obj_freeze( obj );
return obj;
}
I am having a hard time seeing what is wrong here =/
Update: Nevermind I just saw it I think.
The problem is that I more or less forgot about the garbage collector here and is collecting memory inside the render target which is very very bad. Somehow the Mac version garbage collector is invoked more often or something I guess. Anyway there is probably mistakes like this all over the binding.