[gnome-commander] Added some safety precautions for g_thread_join()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Added some safety precautions for g_thread_join()
- Date: Tue, 2 Mar 2010 21:32:50 +0000 (UTC)
commit b40eb0d1e69e5795471e3d3445174840b614f49b
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]