Avoid sending temp pointers to callbacks