fix for applying wayland (removing X)
[apps/home/settings.git] / setting-storage / src / setting-storage.c
index 370afbd..c2c81ca 100755 (executable)
@@ -385,7 +385,12 @@ UG_MODULE_API void UG_MODULE_EXIT(struct ug_module_ops *ops)
 {
        ret_if(NULL == ops);
 
-       FREE(ops->priv);
+       SETTING_TRACE_BEGIN;
+       SettingStorageUG *storageUG = NULL;
+       setting_retm_if(!ops, "ops == NULL");
+
+       storageUG = ops->priv;
+       FREE(storageUG);
 }
 
 UG_MODULE_API int setting_plugin_search_init(app_control_h service, void *priv,