EXPORT_API int widget_base_exit(void)
{
- int ret;
+ int ret = 0;
+ int cnt;
appcore_multiwindow_base_exit();
- if (appcore_multiwindow_base_instance_get_cnt() == 0 && __is_permanent) {
+ cnt = appcore_multiwindow_base_instance_get_cnt();
+ if (cnt == 0 && __is_permanent)
ret = aul_notify_exit();
- aul_widget_write_log(LOG_TAG, "[%s:%d] permanent exit : %d",
- __FUNCTION__, __LINE__, ret);
- }
+
+ aul_widget_write_log(LOG_TAG,
+ "[%s:%d] exit : ret(%d), cnt(%d), permanent(%d)",
+ __FUNCTION__, __LINE__, ret, cnt, __is_permanent);
return 0;
}