[gnome-commander/gcmd-1-3] Added some safety precautions for g_thread_join()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] Added some safety precautions for g_thread_join()
- Date: Tue, 2 Mar 2010 21:32:45 +0000 (UTC)
commit 017dc3559c7f306daa6086cc16fe22abb0e1975a
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Mar 2 22:28:51 2010 +0100
Added some safety precautions for g_thread_join()
src/owner.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/owner.h b/src/owner.h
index 19e606d..dbb175e 100644
--- a/src/owner.h
+++ b/src/owner.h
@@ -211,7 +211,8 @@ inline GnomeCmdOwner::GnomeCmdGroups::Entry *GnomeCmdOwner::new_entry(const stru
inline GnomeCmdOwner::~GnomeCmdOwner()
{
stop_thread = TRUE;
- g_thread_join (thread);
+ if (thread)
+ g_thread_join (thread);
g_free (buff);
g_list_free (group_names);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]