From 17a7fd976a3ba3edb63ada6c48a20d15a2804a71 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Mon, 13 Sep 2010 19:33:11 +0000 Subject: [PATCH] 2010-09-13 12:34 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp ! Reverted back last commit, was generating GPF. This is subject to further investigation as I was trying to locate the cause of always increasing memory consumption. --- harbour/ChangeLog | 6 ++++++ .../contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3101c09138..f36cc666fd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2010-09-13 12:34 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp + ! Reverted back last commit, was generating GPF. + This is subject to further investigation as I was trying + to locate the cause of always increasing memory consumption. + 2010-09-13 20:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/config/win/watcom.mk * removed .exe suffix from executed tools. diff --git a/harbour/contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp b/harbour/contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp index 1edcc96569..1fa4514ac5 100644 --- a/harbour/contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp +++ b/harbour/contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp @@ -78,12 +78,12 @@ QVariant hbqt_fetchData( PHB_ITEM block, int type, int role, int par1, int par2 PHB_ITEM p3 = hb_itemPutNI( NULL, par2 ); PHB_ITEM ret = hb_vmEvalBlockV( block, 4, p0, p1, p2, p3 ); -#if 0 + hb_itemRelease( p0 ); hb_itemRelease( p1 ); hb_itemRelease( p2 ); hb_itemRelease( p3 ); -#endif + if( hb_itemType( ret ) & HB_IT_STRING ) { vv = hb_itemGetCPtr( ret ); @@ -126,12 +126,6 @@ QVariant hbqt_fetchData( PHB_ITEM block, int type, int role, int par1, int par2 } hb_vmRequestRestore(); - - hb_itemRelease( ret ); - hb_itemRelease( p0 ); - hb_itemRelease( p1 ); - hb_itemRelease( p2 ); - hb_itemRelease( p3 ); } return vv;