[Xfce4-commits] <ristretto:ristretto-0.0> Add xfconf_g_property_unbind_all to settings dispose function, clean up the channel nicely.
Stephan Arts
noreply at xfce.org
Sun Oct 23 19:28:31 CEST 2011
Updating branch refs/heads/ristretto-0.0
to 98f6df249ec64bea9d43842e813ca3b18b8a1923 (commit)
from e19e0d31e875dcccb5e952caab9157c25ed028e8 (commit)
commit 98f6df249ec64bea9d43842e813ca3b18b8a1923
Author: Stephan Arts <stephan at xfce.org>
Date: Sat Nov 13 22:27:48 2010 +0100
Add xfconf_g_property_unbind_all to settings dispose function, clean up the channel nicely.
src/settings.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/settings.c b/src/settings.c
index ac5f5c2..a9470ff 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -441,6 +441,12 @@ rstto_settings_dispose (GObject *object)
if (settings->priv)
{
+ if (settings->priv->channel)
+ {
+ xfconf_g_property_unbind_all (settings->priv->channel);
+ g_object_unref (settings->priv->channel);
+ settings->priv->channel = NULL;
+ }
g_free (settings->priv);
settings->priv = NULL;
}
More information about the Xfce4-commits
mailing list