default-apps: Fix illegal memory access
gnome_da_xml_free() frees priv->capplet, so we shouldn't be accessing it afterwards.
This commit is contained in:
parent
720065c183
commit
a205fc79b4
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,6 @@ cc_default_applications_panel_dispose (GObject *object)
|
||||||
if (priv->capplet)
|
if (priv->capplet)
|
||||||
{
|
{
|
||||||
g_object_unref (priv->capplet->gconf);
|
g_object_unref (priv->capplet->gconf);
|
||||||
gnome_da_xml_free (priv->capplet);
|
|
||||||
|
|
||||||
if (priv->capplet->theme_changed_id > 0)
|
if (priv->capplet->theme_changed_id > 0)
|
||||||
{
|
{
|
||||||
|
@ -80,6 +79,8 @@ cc_default_applications_panel_dispose (GObject *object)
|
||||||
priv->capplet->theme_changed_id = 0;
|
priv->capplet->theme_changed_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gnome_da_xml_free (priv->capplet);
|
||||||
|
|
||||||
priv->capplet = NULL;
|
priv->capplet = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue