fix memory leak on messageController/composer