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:
parent
1db8b8a70e
commit
b8c9ee7e88
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user