[gnome-builder/wip/plugins] fuzzy: handle NULL hashtable



commit df67501ac6dfe319003ee35bd39aee6c9f7a3711
Author: Christian Hergert <christian hergert me>
Date:   Fri Jun 12 20:45:46 2015 -0700

    fuzzy: handle NULL hashtable

 contrib/search/fuzzy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/search/fuzzy.c b/contrib/search/fuzzy.c
index 6401556..95b0b52 100644
--- a/contrib/search/fuzzy.c
+++ b/contrib/search/fuzzy.c
@@ -494,7 +494,7 @@ cleanup:
   g_free (downcase);
   g_free (lookup.state);
   g_free (lookup.tables);
-  g_hash_table_unref (lookup.matches);
+  g_clear_pointer (&lookup.matches, g_hash_table_unref);
 
   return matches;
 }


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