[mutter] main: Make sure to free any events that we get from Clutter



commit f3908bb0b88e2eac670a930821779af076499062
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 29 12:38:13 2014 -0500

    main: Make sure to free any events that we get from Clutter

 src/core/main.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index cd5b683..2c8bc83 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -285,8 +285,12 @@ event_dispatch (GSource    *source,
                 gpointer    user_data)
 {
   ClutterEvent *event = clutter_event_get ();
+
   if (event)
-    clutter_do_event (event);
+    {
+      clutter_do_event (event);
+      clutter_event_free (event);
+    }
 
   return TRUE;
 }


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