Files
weston/clients
Pekka Paalanen 6d174cff7a window: menu leak fixes
When a menu self-destructs, free also the widget and struct menu.

As menus are self-destructing, it does not make sense to store the
window pointer, since we cannot clear it automatically. Therefore,
rename window_create_menu() to window_show_menu() that does not return
the window pointer. It also calls window_schedule_redraw() internally.

Fixes Valgrind reported memory leaks.

The alternative would be to explicitly destroy the menu in application's
menu callback.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-19 16:42:05 +02:00
..
2011-12-08 11:36:36 +02:00
2012-01-19 16:42:05 +02:00
2012-01-10 22:41:55 -05:00
2012-01-10 22:41:55 -05:00
2011-11-18 14:48:39 +02:00
2012-01-10 22:41:55 -05:00
2012-01-19 16:42:05 +02:00
2012-01-11 14:24:46 -05:00
2012-01-11 14:24:46 -05:00
2012-01-11 14:24:46 -05:00
2012-01-11 14:24:46 -05:00
2012-01-10 22:41:55 -05:00
2012-01-12 10:48:51 -05:00
2012-01-19 16:42:05 +02:00
2012-01-19 16:42:05 +02:00
2011-11-18 14:46:26 +02:00