From f4e825b81da6dda14d5d4f4ea8501a2c25bf40f9 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 30 Jun 2010 11:23:16 +0100 Subject: [PATCH] backend: fix double free of priv->font_name If the backend was disposed then priv->font_name would be freed but not set to NULL and so if clutter_backend_get_font_name was then called it would double free priv->font_name. --- clutter/clutter-backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c index db92e5de9..83f6194db 100644 --- a/clutter/clutter-backend.c +++ b/clutter/clutter-backend.c @@ -97,6 +97,7 @@ clutter_backend_dispose (GObject *gobject) } g_free (backend->priv->font_name); + backend->priv->font_name = NULL; clutter_backend_set_font_options (backend, NULL);