diff --git a/libnm/nm-remote-connection.c b/libnm/nm-remote-connection.c index 45b804f154..46694cd33d 100644 --- a/libnm/nm-remote-connection.c +++ b/libnm/nm-remote-connection.c @@ -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); }