manager: memleak: free the state file name on dispose

==12663== 45 bytes in 1 blocks are definitely lost in loss record 2,464 of 4,708
==12663==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==12663==    by 0x7F4A6F5: g_malloc (gmem.c:97)
==12663==    by 0x7F6301E: g_strdup (gstrfuncs.c:356)
==12663==    by 0x4B8AE5: nm_manager_new (nm-manager.c:4793)
==12663==    by 0x432F3D: main (main.c:413)

(cherry picked from commit b1e6c9be91)
This commit is contained in:
Lubomir Rintel 2015-02-18 17:34:31 +01:00
parent 2a0fb46d68
commit e97a7613f9

View file

@ -5078,6 +5078,7 @@ dispose (GObject *object)
}
g_clear_object (&priv->settings);
g_free (priv->state_file);
g_clear_object (&priv->vpn_manager);
/* Unregister property filter */