From 549b89049c3675aa3f96b9bc6ee71293c739dd4a Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 13 Nov 2004 17:43:31 +0000 Subject: [PATCH] use XP_MALLOC rather than MemPtrNew --- palm/palmmain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/palm/palmmain.c b/palm/palmmain.c index 405375d07..e233deac2 100644 --- a/palm/palmmain.c +++ b/palm/palmmain.c @@ -2909,7 +2909,7 @@ askFromStream( PalmAppGlobals* globals, XWStreamCtxt* stream, XP_S16 titleID, XP_ASSERT( nBytes < maxFieldTextLen ); - buffer = MemPtrNew( nBytes + 1 ); + buffer = XP_MALLOC( globals->mpool, nBytes + 1 ); stream_getBytes( stream, buffer, nBytes ); /* nuke trailing chars to they don't extend length of field */ while ( buffer[nBytes-1] == '\n' ) { @@ -2919,7 +2919,8 @@ askFromStream( PalmAppGlobals* globals, XWStreamCtxt* stream, XP_S16 titleID, result = palmask( globals, buffer, getResString( globals, STR_OK ), titleID ); - MemPtrFree( buffer ); + + XP_FREE( globals->mpool, buffer ); if ( closeAndDestroy ) { stream_destroy( stream );