aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-29 21:18:51 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-29 21:18:54 +0800
commite76ce986941f3f95b3d35b23b77a0434991975f4 (patch)
tree2f7512b1142eea926fd1650d14fefd631c7e603f /src/empathy-accounts-dialog.c
parent4363fe7a71208ee2d696211838f028ef97700b45 (diff)
downloadgsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar.gz
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar.bz2
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar.lz
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar.xz
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.tar.zst
gsoc2013-empathy-e76ce986941f3f95b3d35b23b77a0434991975f4.zip
empathy-accounts-dialog: do_constructor: don't ref the dialog if it already exists (#600023)
This breaks the concept of a constructor but the caller isn't supposed to unref it itself anyway (it's unreffed in accounts_dialog_destroy_cb).
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 1aacaff68..5829ff8d0 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1762,7 +1762,9 @@ do_constructor (GType type,
if (dialog_singleton)
{
retval = G_OBJECT (dialog_singleton);
- g_object_ref (retval);
+ /* We don't ref the object as the caller is not suppose to unref it.
+ * The dialog is unreffed in accounts_dialog_destroy_cb when the window
+ * has been destroyed. */
}
else
{