util: Quit early once we've found and removed a later

This prevents an invalid read and also improves performance slightly.

https://bugzilla.gnome.org/show_bug.cgi?id=672374
This commit is contained in:
Jasper St. Pierre 2012-03-19 01:44:59 -04:00
parent f16f47bd38
commit 5770b5b3c3

View File

@ -921,6 +921,7 @@ meta_later_remove (guint later_id)
* repaint func run and get removed
*/
destroy_later (later);
return;
}
}
}