[glib/wip/gcleanup] giomodule: Remove extra reference



commit 9c592edb5565771d2bc58bdab6a418c78777af2d
Author: Stef Walter <stefw gnome org>
Date:   Thu Nov 7 23:00:28 2013 +0100

    giomodule: Remove extra reference

 gio/giomodule.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gio/giomodule.c b/gio/giomodule.c
index 962c2a6..cc120f0 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -868,8 +868,7 @@ _g_io_module_get_default (const gchar         *extension_point,
 
  done:
   g_hash_table_insert (default_modules,
-                      g_strdup (extension_point),
-                      impl ? g_object_ref (impl) : NULL);
+                       g_strdup (extension_point), impl);
   g_rec_mutex_unlock (&default_modules_lock);
 
   return impl;


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