#endif /* DISABLE_FEATURE_DATA_FROM_GPS_HRM_PLUGIN */
_DBG("update - app_usage for app_id(%s), for resource(%d), by usage(%d)", app_id, resource_id, app_usage);
-
- _INFO("updated - %d", g_hash_table_replace(gl_hash, app_id, temp));
} else {
appid_usage_s *temp = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (temp == NULL) {
int ret_val = BATTERY_MONITOR_ERROR_NONE;
bool mode = false;
- gl_hash = g_hash_table_new_full(g_str_hash, g_str_equal, bm_data_free, NULL);
+ gl_hash = g_hash_table_new_full(g_str_hash, g_str_equal, bm_data_free, g_free);
if (!gl_hash)
_ERR("Global Hash creation failed");
app_time_map_st1 *node = (app_time_map_st1 *)data;
- _DBG("delete - app_id(%s) app_time_map_st1", node->app_id);
-
BM_FREE(node);
EXIT;
app_time_map_st2 *node = (app_time_map_st2 *)data;
- _DBG("delete - app_id(%s) of app_time_map_st2", node->app_id);
-
BM_FREE(node);
EXIT;