x11: Ignore NULL settings

Prevent a segfault when dealing with XSETTINGS_ACTION_DELETE.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2441
This commit is contained in:
Emmanuele Bassi 2010-11-23 10:26:15 +00:00
parent 1db8b8a70e
commit b8c9ee7e88

View File

@ -132,6 +132,9 @@ clutter_backend_x11_xsettings_notify (const char *name,
if (name == NULL || *name == '\0')
return;
if (setting == NULL)
return;
g_object_freeze_notify (G_OBJECT (settings));
for (i = 0; i < _n_clutter_settings_map; i++)