fix segv: remove timer when popup is hidden/destroyed.

for quick commands (i call couple of short-named shell scripts) it was
easy to trigger the situation where timer expired after popup was gone
and E got a segv by accessing popup == NULL.



SVN revision: 40932
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-07 02:02:54 +00:00
parent 96adeb6eee
commit 34699a3ba3
1 changed files with 6 additions and 0 deletions

View File

@ -191,6 +191,12 @@ evry_hide(void)
if (!popup) return;
if (update_timer)
{
ecore_timer_del(update_timer);
update_timer = NULL;
}
evas_event_freeze(popup->evas);
_evry_matches_clear();
e_popup_hide(popup);