diff options
author | Adrian Thurston <thurston@colm.net> | 2018-06-18 14:39:56 +0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-06-18 14:39:56 +0700 |
commit | 947f47fa390a262c101822df2b181c807bd861bc (patch) | |
tree | ffe01b598e3c3bcdeb5cd5dfa75137db87a0f73e /src/bytecode.c | |
parent | e706bc4c2a396c3a60658072412e26d9bee83fca (diff) | |
download | colm-947f47fa390a262c101822df2b181c807bd861bc.tar.gz |
added close_stream to stream funcs
Diffstat (limited to 'src/bytecode.c')
-rw-r--r-- | src/bytecode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 502be2e6..6c68135c 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -2532,10 +2532,7 @@ again: stream_t *stream = vm_pop_stream(); struct stream_impl *si = stream->impl; - if ( si->file != 0 ) { - colm_close_stream_file( si->file ); - si->file = 0; - } + si->funcs->close_stream( si ); vm_push_stream( stream ); break; |