delete auto resource releasing facility
This commit is contained in:
parent
7e69ae1878
commit
4d8ffa43c8
4
src/gc.c
4
src/gc.c
|
@ -501,10 +501,6 @@ gc_finalize_object(pic_state *pic, struct pic_object *obj)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PIC_TT_PORT: {
|
case PIC_TT_PORT: {
|
||||||
struct pic_port *port = (struct pic_port *)obj;
|
|
||||||
if (port->status == PIC_PORT_OPEN) {
|
|
||||||
fclose(port->file);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PIC_TT_ERROR: {
|
case PIC_TT_ERROR: {
|
||||||
|
|
Loading…
Reference in New Issue