[gnome-control-center/gnome-3-14] region: Clear input chooser rows instead of unrefing them
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-14] region: Clear input chooser rows instead of unrefing them
- Date: Thu, 19 Mar 2015 19:47:44 +0000 (UTC)
commit 43b3bed8e038e2ce6ad418de0b70873336c1420e
Author: Joaquim Rocha <me joaquimrocha com>
Date: Tue Feb 24 21:21:51 2015 +0100
region: Clear input chooser rows instead of unrefing them
These changes prevent warnings when unreferencing the default input
source, locale and back rows which are never instanced by some locales
(and thus null).
panels/region/cc-input-chooser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index 857c77c..13500fb 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -93,9 +93,9 @@ locale_info_free (gpointer data)
g_free (info->name);
g_free (info->unaccented_name);
g_free (info->untranslated_name);
- g_object_unref (info->default_input_source_row);
- g_object_unref (info->locale_row);
- g_object_unref (info->back_row);
+ g_clear_object (&info->default_input_source_row);
+ g_clear_object (&info->locale_row);
+ g_clear_object (&info->back_row);
g_hash_table_destroy (info->layout_rows_by_id);
g_hash_table_destroy (info->engine_rows_by_id);
g_free (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]