[bijiben] Fix compilation warnings
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Fix compilation warnings
- Date: Wed, 9 Oct 2013 20:22:35 +0000 (UTC)
commit 018128c8d74086d04a4e62b2c4b882e95870ab02
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Wed Oct 9 22:20:04 2013 +0200
Fix compilation warnings
src/libbiji/provider/biji-own-cloud-provider.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libbiji/provider/biji-own-cloud-provider.c b/src/libbiji/provider/biji-own-cloud-provider.c
index 002f333..7ecdbbb 100644
--- a/src/libbiji/provider/biji-own-cloud-provider.c
+++ b/src/libbiji/provider/biji-own-cloud-provider.c
@@ -133,6 +133,8 @@ biji_own_cloud_provider_finalize (GObject *object)
g_object_unref (self->priv->object);
g_object_unref (self->priv->info.icon);
+ g_clear_pointer (&self->priv->info.name, g_free);
+
G_OBJECT_CLASS (biji_own_cloud_provider_parent_class)->finalize (object);
}
@@ -631,7 +633,7 @@ biji_own_cloud_provider_constructed (GObject *obj)
priv->info.unique_id = goa_account_get_id (priv->account);
priv->info.datasource = g_strdup_printf ("gn:goa-account:%s",
priv->info.unique_id);
- priv->info.name = goa_account_get_provider_name (priv->account);
+ priv->info.name = g_strdup (goa_account_get_provider_name (priv->account));
error = NULL;
icon = g_icon_new_for_string (goa_account_get_provider_icon (priv->account),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]