mono: memory leak fixes