views: Don't retain MenuRunner on heap.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 21 Jul 2014 13:42:01 +0000 (21:42 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 21 Jul 2014 13:42:01 +0000 (21:42 +0800)
commit21949e2f0c4d4ffd17a0d49899269d1d05e25656
treece2c83f1d18a71525cb332cb4e0a710e6b6f8318
parent1a79093378bfd457fda817ff1e4d19f01d049950
views: Don't retain MenuRunner on heap.

Sometimes the MenuHost would crash when the window is closed, the author
didn't recommend using MenuRunner on stack, but since we always run the
menu synchronously, this is no problem.
atom/browser/api/atom_api_menu_views.cc
atom/browser/api/atom_api_menu_views.h
atom/browser/ui/views/menu_delegate.cc
atom/browser/ui/views/menu_delegate.h