[mutter/wip/carlosg/input-thread: 83/87] clutter: Do not emit signals during ClutterBackend finalization




commit 424f3b702ee78624e1253708008516c52739c441
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 23 18:35:36 2020 +0100

    clutter: Do not emit signals during ClutterBackend finalization
    
    Missed because nobody does that ATM.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>

 clutter/clutter/clutter-backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c
index 5e98a2bbe5..91298c964c 100644
--- a/clutter/clutter/clutter-backend.c
+++ b/clutter/clutter/clutter-backend.c
@@ -111,7 +111,7 @@ clutter_backend_finalize (GObject *gobject)
   g_source_destroy (backend->cogl_source);
 
   g_free (backend->font_name);
-  clutter_backend_set_font_options (backend, NULL);
+  g_clear_pointer (&backend->font_options, cairo_font_options_destroy);
   g_clear_object (&backend->input_method);
 
   G_OBJECT_CLASS (clutter_backend_parent_class)->finalize (gobject);


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