OK, garbage collection is now working a little bit.
This commit is contained in:
parent
235d455b80
commit
9425506e2a
5 changed files with 45 additions and 30 deletions
|
|
@ -209,13 +209,13 @@ struct pso_pointer write( struct pso_pointer frame_pointer ) {
|
|||
bool nl_before = c_truep( fetch_arg( frame, 3 ) );
|
||||
bool nl_after = c_truep( fetch_arg( frame, 4 ) );
|
||||
struct pso_pointer result = object;
|
||||
URL_FILE *output = writep( stream )
|
||||
? pointer_to_object( stream )->payload.stream.stream
|
||||
: file_to_url_file( stdout );
|
||||
struct pso2* stream_obj = pointer_to_object( stream );
|
||||
|
||||
if ( writep( stream ) ) {
|
||||
inc_ref( stream );
|
||||
|
||||
URL_FILE *output = stream_obj->payload.stream.stream;
|
||||
|
||||
if ( nl_before )
|
||||
url_fputwc( L'\n', output );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue