2009-12-08 04:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/hbcairo/core.c
    ! fixed code which operates on GC blocks and make both versions
      (with and without HB_USE_ITEM) working in the same way so thay
      can be easy compared.
This commit is contained in:
Przemyslaw Czerpak
2009-12-08 03:08:08 +00:00
parent f0be172fe0
commit 267d7c11cb
2 changed files with 10 additions and 9 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-08 04:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbcairo/core.c
! fixed code which operates on GC blocks and make both versions
(with and without HB_USE_ITEM) working in the same way so thay
can be easy compared.
2009-12-08 02:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_slots.cpp
! Fixed to check for NULL pointer and return error in

View File

@@ -286,7 +286,7 @@ static HB_GARBAGE_FUNC( hb_cairo_path_iterator_destructor )
#ifdef HB_USE_ITEM
hb_itemRelease( pIterator->pPath );
#else
hb_gcRefDec( pIterator->pPath );
hb_gcRefFree( pIterator->pPath );
#endif
pIterator->pPath = NULL;
}
@@ -298,13 +298,7 @@ static HB_GARBAGE_FUNC( hb_cairo_path_iterator_mark )
PHB_CAIRO_PATH_ITERATOR pIterator = ( PHB_CAIRO_PATH_ITERATOR ) Cargo;
if( pIterator->pPath )
{
#ifdef HB_USE_ITEM
hb_gcGripMark( pIterator->pPath );
#else
hb_gcMark( pIterator->pPath );
#endif
}
}
@@ -324,9 +318,10 @@ HB_FUNC( CAIRO_PATH_ITERATOR_CREATE )
PHB_CAIRO_PATH_ITERATOR pIterator = ( PHB_CAIRO_PATH_ITERATOR ) hb_gcAllocate( sizeof( PHB_CAIRO_PATH_ITERATOR ), &s_gcIteratorFuncs );
#ifdef HB_USE_ITEM
pIterator->pPath = hb_itemNew( hb_param( 1, HB_IT_POINTER ) );
hb_gcUnlock( pIterator->pPath );
#else
hb_gcRefInc( pPath );
pIterator->pPath = pPath;
hb_gcRefInc( pPath );
#endif
pIterator->iPos = -1;
hb_itemPutPtrGC( hb_stackReturnItem(), pIterator );
@@ -343,7 +338,7 @@ HB_FUNC( CAIRO_PATH_ITERATOR_DESTROY )
#ifdef HB_USE_ITEM
hb_itemRelease( pIterator->pPath );
#else
hb_gcRefDec( pIterator->pPath );
hb_gcRefFree( pIterator->pPath );
#endif
pIterator->pPath = NULL;
}