[gegl/pippin/property-keys] property-keys: unref instead of destroying hashtable



commit 5f3ab3fdabcc4d97d5919b85a6dc38886165a835
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed May 14 21:07:42 2014 +0200

    property-keys: unref instead of destroying hashtable

 gegl/operation/gegl-operation-property-keys.c |    2 +-
 gegl/property-types/gegl-paramspecs.c         |   26 ++++++++++++------------
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-property-keys.c b/gegl/operation/gegl-operation-property-keys.c
index 938e86c..4f97c50 100644
--- a/gegl/operation/gegl-operation-property-keys.c
+++ b/gegl/operation/gegl-operation-property-keys.c
@@ -39,7 +39,7 @@ gegl_paramspec_get_property_key_ht (GParamSpec  *pspec,
       {
         ret = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
         g_param_spec_set_qdata_full (pspec, quark, ret, 
-                                     (GDestroyNotify)g_hash_table_destroy);
+                                     (GDestroyNotify)g_hash_table_unref);
       }
     }
   return ret;
diff --git a/gegl/property-types/gegl-paramspecs.c b/gegl/property-types/gegl-paramspecs.c
index 09eef1d..490e78a 100644
--- a/gegl/property-types/gegl-paramspecs.c
+++ b/gegl/property-types/gegl-paramspecs.c
@@ -812,7 +812,7 @@ gegl_param_spec_double_from_vararg (const char *name, ...)
 #endif
 
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -883,7 +883,7 @@ gegl_param_spec_int_from_vararg (const char *name, ...)
 #endif
 
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -927,7 +927,7 @@ gegl_param_spec_boolean_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -970,7 +970,7 @@ gegl_param_spec_string_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1014,7 +1014,7 @@ gegl_param_spec_file_path_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1059,7 +1059,7 @@ gegl_param_spec_enum_from_vararg (const char *name, GType enum_type, ...)
                              G_PARAM_CONSTRUCT |
                              GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1098,7 +1098,7 @@ gegl_param_spec_pointer_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1138,7 +1138,7 @@ gegl_param_spec_object_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1181,7 +1181,7 @@ gegl_param_spec_curve_from_vararg (const char *name, ...)
                             GEGL_PARAM_PAD_INPUT));
   g_object_unref (curve);
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1220,7 +1220,7 @@ gegl_param_spec_path_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1259,7 +1259,7 @@ gegl_param_spec_format_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1305,7 +1305,7 @@ gegl_param_spec_color_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }
 
@@ -1344,6 +1344,6 @@ gegl_param_spec_seed_from_vararg (const char *name, ...)
                             G_PARAM_CONSTRUCT |
                             GEGL_PARAM_PAD_INPUT));
   g_param_spec_set_qdata_full (pspec, g_quark_from_static_string ("meta"),
-                               ht, (GDestroyNotify)g_hash_table_destroy);
+                               ht, (GDestroyNotify)g_hash_table_unref);
   return pspec;
 }


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