The manual is completely wrong here. `GCunref` needs to be paired with `GCref`, always. And indeed you need the GCref in order to keep the GC from collecting the string too early.
- When's GCunref() necessary liwt31
- Re: When's GCunref() necessary Araq
The manual is completely wrong here. `GCunref` needs to be paired with `GCref`, always. And indeed you need the GCref in order to keep the GC from collecting the string too early.