From 5770b5b3c3cfbd6b38bd0a497eda9e2196602ccc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 19 Mar 2012 01:44:59 -0400 Subject: [PATCH] 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 --- src/core/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/util.c b/src/core/util.c index 298a45cd8..69de5f053 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -921,6 +921,7 @@ meta_later_remove (guint later_id) * repaint func run and get removed */ destroy_later (later); + return; } } }