From d2d199a6926d8d0b473b7b40b050c943623e56a1 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 14 Aug 2004 19:10:17 +0000 Subject: [PATCH] fix bug in current process git-svn-id: http://ltt.polymtl.ca/svn@749 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/controlflow/processlist.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index 9fc871d8..ef3e3177 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 */ } -- 2.34.1