[gnome-software/wip/iainl/ubuntu-xenial: 282/287] ubuntu-reviews: Don't leak the db path



commit c8dc39f34b9d3fd0c3ba4c0263aacd1e778f62f4
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 92ea114..a3c6130 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -114,6 +114,7 @@ gs_plugin_destroy (GsPlugin *plugin)
        g_clear_pointer (&priv->consumer_secret, g_free);
        g_clear_pointer (&priv->consumer_key, g_free);
        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]