[almanah] storage: Removed unnecessary g_clear_object
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] storage: Removed unnecessary g_clear_object
- Date: Mon, 15 Jun 2015 09:19:28 +0000 (UTC)
commit e5d566838277870c3442a902e30ef88d0224f46b
Author: Álvaro Peña <alvaropg gmail com>
Date: Mon Jun 15 10:21:15 2015 +0200
storage: Removed unnecessary g_clear_object
g_set_object clear the destination object already
src/storage-manager.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/storage-manager.c b/src/storage-manager.c
index adcb606..c925444 100644
--- a/src/storage-manager.c
+++ b/src/storage-manager.c
@@ -205,7 +205,6 @@ almanah_storage_manager_set_property (GObject *object, guint property_id, const
priv->filename = g_strdup (g_value_get_string (value));
break;
case PROP_SETTINGS:
- g_clear_object (&priv->settings);
g_set_object (&priv->settings, g_value_get_object (value));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]