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



commit 5770b5b3c3cfbd6b38bd0a497eda9e2196602ccc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 19 01:44:59 2012 -0400

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/util.c b/src/core/util.c
index 298a45c..69de5f0 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;
         }
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]