[gnome-photos] query-builder: Plug a memory leak



commit e39dfb4e47a1f2aecd67840bc5e4b2785c4d0283
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Aug 11 15:44:44 2012 +0200

    query-builder: Plug a memory leak

 src/photos-query-builder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index c47f27e..7dc75b8 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -93,6 +93,7 @@ photos_query_builder_query (gboolean global, gint flags)
 
   optional = photos_query_builder_optional ();
   where_sparql = g_strconcat ("WHERE { ?urn a rdfs:Resource ", optional, NULL);
+  g_free (optional);
 
   if (!(flags & PHOTOS_QUERY_FLAGS_UNFILTERED))
     {



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