[gnome-calendar] source-dialog: g_object_ref() returns the object
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: g_object_ref() returns the object
- Date: Mon, 25 May 2015 17:03:51 +0000 (UTC)
commit fdba286915cd33a58a0527c557b7b75350cd004a
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat May 16 18:13:09 2015 -0400
source-dialog: g_object_ref() returns the object
src/gcal-source-dialog.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 9461b28..610eb99 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -2279,8 +2279,5 @@ gcal_source_dialog_set_source (GcalSourceDialog *dialog,
GcalSourceDialogPrivate *priv = dialog->priv;
g_assert (source && E_IS_SOURCE (source));
-
- g_object_ref (source);
-
- priv->source = source;
+ priv->source = g_object_ref (source);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]