Updating branch refs/heads/master
to 98f6df249ec64bea9d43842e813ca3b18b8a1923 (commit)
from e19e0d31e875dcccb5e952caab9157c25ed028e8 (commit)
commit 98f6df249ec64bea9d43842e813ca3b18b8a1923
Author: Stephan Arts <[email protected]>
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;
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits