From: Sergio Villar Senin Date: Fri, 24 Oct 2008 07:32:08 +0000 (+0000) Subject: * Fixes NB#90818, fixes a potential memory leak X-Git-Tag: git_migration_finished~1104 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=513bfcfd2c3282bf66eede0affdb010785f6b42b;hp=d06df87ab7e31b07d95af9e692775fe95e36e18d * Fixes NB#90818, fixes a potential memory leak pmo-trunk-r6155 --- diff --git a/src/widgets/modest-window.c b/src/widgets/modest-window.c index c25d5b9..cab203d 100644 --- a/src/widgets/modest-window.c +++ b/src/widgets/modest-window.c @@ -161,6 +161,10 @@ modest_window_finalize (GObject *obj) g_object_unref (G_OBJECT(priv->ui_dimming_manager)); priv->ui_dimming_manager = NULL; } + if (priv->dimming_state != NULL) { + g_slice_free (DimmedState, priv->dimming_state); + priv->dimming_state = NULL; + } g_free (priv->active_account);