afg
This commit is contained in:
parent
cf058bd113
commit
9c9af253dc
|
|
@ -594,3 +594,4 @@ static void mriBindingTerminate(){
|
||||||
static void mriBindingReset(){
|
static void mriBindingReset(){
|
||||||
rb_raise(getRbData()->exc[Reset], " ");
|
rb_raise(getRbData()->exc[Reset], " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,10 @@
|
||||||
|
|
||||||
static void fileIntFreeInstance(void *inst){
|
static void fileIntFreeInstance(void *inst){
|
||||||
SDL_IOStream *ops = static_cast<SDL_IOStream*>(inst);
|
SDL_IOStream *ops = static_cast<SDL_IOStream*>(inst);
|
||||||
|
if (ops) {
|
||||||
SDL_CloseIO(ops);
|
SDL_CloseIO(ops);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEF_TYPE_CUSTOMFREE(FileInt, fileIntFreeInstance);
|
DEF_TYPE_CUSTOMFREE(FileInt, fileIntFreeInstance);
|
||||||
|
|
||||||
static VALUE fileIntForPath(const char *path, bool rubyExc){
|
static VALUE fileIntForPath(const char *path, bool rubyExc){
|
||||||
|
|
@ -98,6 +99,7 @@ RB_METHOD(fileIntClose){
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
SDL_CloseIO(ops);
|
SDL_CloseIO(ops);
|
||||||
|
setPrivateData(self, nullptr);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue