[gnome-software] trivial: snap: Free store_name properly



commit c5a753f9673f680dc829df4cd33da4404e3b64b6
Author: Iain Lane <iain orangesquash org uk>
Date:   Thu Sep 21 10:33:22 2017 +0100

    trivial: snap: Free store_name properly
    
    This was crashing us when destroying the plugin.

 plugins/snap/gs-plugin-snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 2e9be96..01e39c0 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -350,7 +350,7 @@ void
 gs_plugin_destroy (GsPlugin *plugin)
 {
        GsPluginData *priv = gs_plugin_get_data (plugin);
-       g_free (&priv->store_name);
+       g_free (priv->store_name);
        g_clear_object (&priv->auth);
        g_clear_pointer (&priv->store_snaps, g_hash_table_unref);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]