[gnome-software/gnome-3-20] ubuntu-reviews: Don't leak the db path



commit 4f1ae9f26782432b4a3f5b80e6d0521c28848818
Author: Iain Lane <iain orangesquash org uk>
Date:   Tue Apr 12 09:05:37 2016 +0100

    ubuntu-reviews: Don't leak the db path

 src/plugins/gs-plugin-ubuntu-reviews.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index d40683a..b5c98ff 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -90,6 +90,7 @@ gs_plugin_destroy (GsPlugin *plugin)
        GsPluginPrivate *priv = plugin->priv;
 
        g_clear_pointer (&priv->db, sqlite3_close);
+       g_free (priv->db_path);
 }
 
 static gint


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