tzservices/tzserver/Server/Source/tzlocalizationdb.cpp
branchRCL_3
changeset 82 4610cd70c542
parent 0 2e3d3ce01487
--- a/tzservices/tzserver/Server/Source/tzlocalizationdb.cpp	Wed Sep 15 12:23:15 2010 +0300
+++ b/tzservices/tzserver/Server/Source/tzlocalizationdb.cpp	Wed Oct 13 14:43:04 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -147,7 +147,7 @@
 void CTzLocalizationDb::CloseDb()
     {
 	iLocalizedTimeZoneDb.Close();
-	if (iZoneMutex.IsHeld())    // it is a leave, so release mutex
+	if (iZoneMutex.Handle() && iZoneMutex.IsHeld())    // it is a leave, so release mutex
 		{
 		iZoneMutex.Signal();
 		}