delete object after use, memleak