Commit d1f7327b authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

use g_ptr_array_unref instead of g_ptr_array_free

parent 83c97a81
......@@ -320,7 +320,7 @@ info_ready_cb (GList *files,
else
update_modification_time (self);
g_ptr_array_free (attribute_v, TRUE);
g_ptr_array_unref (attribute_v);
gth_datetime_free (date_time);
}
......
......@@ -82,7 +82,7 @@ gth_comment_finalize (GObject *obj)
gth_comment_free_data (self);
gth_comment_clear_categories (self);
g_ptr_array_free (self->priv->categories, TRUE);
g_ptr_array_unref (self->priv->categories);
g_date_free (self->priv->date);
gth_time_free (self->priv->time_of_day);
......@@ -425,7 +425,7 @@ void
gth_comment_clear_categories (GthComment *self)
{
g_ptr_array_foreach (self->priv->categories, (GFunc) g_free, NULL);
g_ptr_array_free (self->priv->categories, TRUE);
g_ptr_array_unref (self->priv->categories);
self->priv->categories = g_ptr_array_new ();
}
......
......@@ -53,7 +53,7 @@ typedef struct {
static void
browser_data_free (BrowserData *data)
{
g_ptr_array_free (data->rows, FALSE);
g_ptr_array_unref (data->rows);
g_object_unref (data->builder);
g_free (data);
}
......
......@@ -288,7 +288,7 @@ find_device_by_kind_cb (GObject *source_object,
cd_device_connected_cb,
task);
g_ptr_array_free (devices, TRUE);
g_ptr_array_unref (devices);
}
......
......@@ -134,8 +134,8 @@ gth_main_finalize (GObject *object)
_g_object_list_unref (gth_main->priv->file_sources);
g_hash_table_unref (gth_main->priv->metadata_info_hash);
g_ptr_array_free (gth_main->priv->metadata_category, TRUE);
g_ptr_array_free (gth_main->priv->metadata_info, TRUE);
g_ptr_array_unref (gth_main->priv->metadata_category);
g_ptr_array_unref (gth_main->priv->metadata_info);
g_list_foreach (gth_main->priv->metadata_provider, (GFunc) g_object_unref, NULL);
g_list_free (gth_main->priv->metadata_provider);
......@@ -985,7 +985,7 @@ gth_main_get_type_set (const char *set_name)
static void
g_ptr_array_destroy (gpointer array)
{
g_ptr_array_free ((GPtrArray *) array, TRUE);
g_ptr_array_unref ((GPtrArray *) array);
}
......
......@@ -253,7 +253,7 @@ gth_window_finalize (GObject *object)
g_object_unref (window->priv->window_group);
g_object_unref (window->priv->accel_group);
g_hash_table_unref (window->priv->shortcuts);
g_ptr_array_free (window->priv->shortcuts_v, TRUE);
g_ptr_array_unref (window->priv->shortcuts_v);
G_OBJECT_CLASS (gth_window_parent_class)->finalize (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment