X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fprocesslist.c;h=d273167dd11d8b29aaff4fb34bb5e7a109b4f0ed;hb=0e9000a1e3f30faefd65533a792ccdc2255bbcab;hp=9fc871d862d57d24308c0f54760811be9b24e715;hpb=40debf7ba758820af936895254394591f139f732;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 9fc871d8..d273167d 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -416,9 +416,11 @@ static gboolean remove_hash_item(ProcessInfo *process_info, 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 */ } @@ -576,10 +578,11 @@ int processlist_remove( ProcessList *process_list, 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;