libnm: fix leaking filename in NMRemoteConnection

Fixes: bd6fe17815
This commit is contained in:
Thomas Haller
2018-06-21 16:06:01 +02:00
parent 3b1b6427d1
commit 9bc6ca96f6

View File

@@ -62,7 +62,7 @@ typedef struct {
gboolean unsaved;
guint32 flags;
const char *filename;
char *filename;
gboolean visible;
} NMRemoteConnectionPrivate;
@@ -939,6 +939,7 @@ dispose (GObject *object)
NMRemoteConnectionPrivate *priv = NM_REMOTE_CONNECTION_GET_PRIVATE (object);
g_clear_object (&priv->proxy);
nm_clear_g_free (&priv->filename);
G_OBJECT_CLASS (nm_remote_connection_parent_class)->dispose (object);
}