[gnome-builder/search] fuzzy: add missing fuzzy_ref()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/search] fuzzy: add missing fuzzy_ref()
- Date: Mon, 15 Dec 2014 04:58:42 +0000 (UTC)
commit 266fed190e61855896b59dd03e6154098479430a
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]