diff -r dcd4152cfe55 -r f5642d05cce0 appfw/apparchitecture/apserv/APSRECCACHE.cpp --- a/appfw/apparchitecture/apserv/APSRECCACHE.cpp Fri Sep 17 08:30:44 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSRECCACHE.cpp Mon Oct 04 00:28:21 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -38,8 +38,13 @@ CRecognitionResultHashMapEntry::~CRecognitionResultHashMapEntry() { - iResult->Close(); - iResult = NULL; + + if(iResult != NULL) + { + iResult->Close(); + iResult = NULL; + } + delete iNext; }