Added free() method for StringBuilder
parent
229417244d
commit
877f9e7070
|
@ -34,3 +34,6 @@ fn (b StringBuilder) cut(n int) {
|
||||||
b.len -= n
|
b.len -= n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn (b mut StringBuilder) free() {
|
||||||
|
C.free(b.buf.data)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue