[gnome-builder] fuzzy: add missing fuzzy_ref()



commit 61dadabdd8aac10325939dee5b10534e64203017
Author: Christian Hergert <christian hergert me>
Date:   Sun Dec 14 20:57:53 2014 -0800

    fuzzy: add missing fuzzy_ref()

 src/fuzzy/fuzzy.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/fuzzy/fuzzy.c b/src/fuzzy/fuzzy.c
index 83aa140..bd6d9d0 100644
--- a/src/fuzzy/fuzzy.c
+++ b/src/fuzzy/fuzzy.c
@@ -115,6 +115,18 @@ fuzzy_match_compare (gconstpointer a,
 }
 
 
+Fuzzy *
+fuzzy_ref (Fuzzy *fuzzy)
+{
+  g_return_val_if_fail (fuzzy, NULL);
+  g_return_val_if_fail (fuzzy->ref_count > 0, NULL);
+
+  g_atomic_int_inc (&fuzzy->ref_count);
+
+  return fuzzy;
+}
+
+
 /**
  * fuzzy_new:
  * @case_sensitive: %TRUE if case should be preserved.


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