This commit is contained in:
ZakatTeamI2P 2026-04-23 20:03:53 +04:00
parent cf058bd113
commit 9c9af253dc
2 changed files with 10 additions and 7 deletions

View File

@ -594,3 +594,4 @@ static void mriBindingTerminate(){
static void mriBindingReset(){
rb_raise(getRbData()->exc[Reset], " ");
}

View File

@ -31,9 +31,10 @@
static void fileIntFreeInstance(void *inst){
SDL_IOStream *ops = static_cast<SDL_IOStream*>(inst);
if (ops) {
SDL_CloseIO(ops);
}
}
DEF_TYPE_CUSTOMFREE(FileInt, fileIntFreeInstance);
static VALUE fileIntForPath(const char *path, bool rubyExc){
@ -98,6 +99,7 @@ RB_METHOD(fileIntClose){
return Qnil;
}
SDL_CloseIO(ops);
setPrivateData(self, nullptr);
return Qnil;
}