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

* harbour/src/rtl/gtxwc/gtxwc.c
    ! fixed yet another one memory leak
This commit is contained in:
Przemyslaw Czerpak
2009-12-18 03:08:30 +00:00
parent e83b6c0f28
commit ab6d1e7a9f
2 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-18 04:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
! fixed yet another one memory leak
2009-12-18 03:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtxwc/gtxwc.c
! fixed memory leak caused by unreleased text property value

View File

@@ -2113,6 +2113,9 @@ static void hb_gt_xwc_WndProc( PXWND_DEF wnd, XEvent *evt )
#ifdef XWC_DEBUG
printf( "UTF8String='%s'\r\n", text.value ); fflush(stdout);
#endif
if( wnd->ClipboardData != NULL )
hb_xfree( wnd->ClipboardData );
wnd->ClipboardSize = text.nitems;
wnd->ClipboardData = ( unsigned char * )
hb_cdpnDup( ( const char * ) text.value, &wnd->ClipboardSize,