[gnome-calendar/calendar-editor] 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/calendar-editor] source-dialog: g_object_ref() returns the object
- Date: Sat, 16 May 2015 22:15:19 +0000 (UTC)
commit ad3782ab86dda89f18e9e9b3c43bef17cf2f78b9
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 d66e573..6fa4426 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]