freeToArray

inline fun CPointer<IntVar>.freeToArray(): Array<Int>


inline fun CStringList.freeToArray(): Array<String>

Like the toArray version, except frees the pointer