[gtk/wip/baedert/nodeeditor: 11/12] magnifier: Don't unref a NULL renderer



commit e83c98a49eb9e2849246bf3699830f7e46cebbd9
Author: Timm Bäder <mail baedert org>
Date:   Tue Apr 16 07:13:44 2019 +0200

    magnifier: Don't unref a NULL renderer

 gtk/inspector/magnifier.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/inspector/magnifier.c b/gtk/inspector/magnifier.c
index 48690a482d..82c0b9db41 100644
--- a/gtk/inspector/magnifier.c
+++ b/gtk/inspector/magnifier.c
@@ -86,7 +86,7 @@ gtk_inspector_magnifier_add_renderer (GtkInspectorMagnifier *self,
 
   paintable = gtk_renderer_paintable_new (renderer, priv->paintable);
   g_object_set_data_full (G_OBJECT (paintable), "description", g_strdup (description), g_free);
-  g_object_unref (renderer);
+  g_clear_object (&renderer);
 
   g_list_store_append (priv->renderers, paintable);
   g_object_unref (paintable);


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