gtk_list_store_remove (process_list->list_store, &iter);
- if(hashed_process_data == process_list->current_hash_data[process_info->cpu])
- process_list->current_hash_data[process_info->cpu] = NULL;
-
+ if(process_list->current_hash_data != NULL) {
+ if(hashed_process_data ==
+ process_list->current_hash_data[process_info->cpu])
+ process_list->current_hash_data[process_info->cpu] = NULL;
+ }
return TRUE; /* remove the element from the hash table */
}
g_hash_table_remove(process_list->process_hash,
&process_info);
- if(hashed_process_data == process_list->current_hash_data[cpu]) {
- process_list->current_hash_data[cpu] = NULL;
+ if(process_list->current_hash_data != NULL) {
+ if(hashed_process_data == process_list->current_hash_data[cpu]) {
+ process_list->current_hash_data[cpu] = NULL;
+ }
}
-
process_list->number_of_process--;
return 0;