Skip to content

Commit

Permalink
LPCFile.sc: And, release the buffer number (forgot in the last commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Harkins committed Jan 28, 2015
1 parent 69f8d8a commit c86d3c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/JoshUGens/sc/classes/LPCFile.sc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ LPCFile : File {
}

asUGenInput {^buffer}
free { this.server.sendMsg(\b_free, buffer); buffer = nil }
free {
this.server.sendMsg(\b_free, buffer);
this.server.bufferAllocator.free(buffer);
buffer = nil
}
bufnum {^buffer}
asControlInput { ^buffer }
}

0 comments on commit c86d3c1

Please sign in to comment.