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



commit c3b0faec82083a5cf0a8974254d232190c07be14
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 89a9d06..f22bf8e 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -302,8 +302,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]