From 59eb81532015989a549245fdfd30d030ead4872b Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 11 Jan 2008 21:35:29 +0000 Subject: [PATCH] 2008-01-11 22:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/itemapi.c ! use hb_xRefFree() instead of hb_xRefDec() in hb_itemUnLockCPtr() It's necessary when source item is cleared before. --- harbour/ChangeLog | 5 +++++ harbour/source/vm/itemapi.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e4aba1ea69..18a378e69b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2008-01-11 22:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/vm/itemapi.c + ! use hb_xRefFree() instead of hb_xRefDec() in hb_itemUnLockCPtr() + It's necessary when source item is cleared before. + 2008-01-11 18:13 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbexprb.c * removed unused variable diff --git a/harbour/source/vm/itemapi.c b/harbour/source/vm/itemapi.c index 6bf2455521..36a1c3cdea 100644 --- a/harbour/source/vm/itemapi.c +++ b/harbour/source/vm/itemapi.c @@ -479,7 +479,7 @@ HB_EXPORT void hb_itemUnLockCPtr( char * pszString ) HB_TRACE(HB_TR_DEBUG, ("hb_itemUnLockCPtr(%p,%p)", pszString)); if( pszString ) - hb_xRefDec( pszString ); + hb_xRefFree( pszString ); } HB_EXPORT ULONG hb_itemCopyC( PHB_ITEM pItem, char * szBuffer, ULONG ulLen )