From 694816d7291f17364502ac5d3319684a0b180860 Mon Sep 17 00:00:00 2001 From: Shyam Pallapothu Date: Thu, 21 Apr 2011 09:48:41 -0700 Subject: Fix for issue 4133431 "Remove OSAL layer" in engine part Change-Id: I98f98691048a5afc6f691b0cc3cec92e458e8f44 --- libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c') diff --git a/libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c b/libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c index 9341ca9..4a8ff6f 100755 --- a/libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c +++ b/libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c @@ -80,7 +80,7 @@ M4OSA_ERR M4OSA_fileWriteRamOpen(M4OSA_Context* context, M4OSA_Void* fileDescrip } /* Allocate memory for the File writer context. */ - pContext = (M4OSA_FileWriterRam_Context *)M4OSA_malloc(sizeof(M4OSA_FileWriterRam_Context), + pContext = (M4OSA_FileWriterRam_Context *)M4OSA_32bitAlignedMalloc(sizeof(M4OSA_FileWriterRam_Context), M4OSA_FILE_WRITER, (M4OSA_Char*)"Context allocation"); if(pContext == M4OSA_NULL) { @@ -103,7 +103,7 @@ M4OSA_ERR M4OSA_fileWriteRamOpen(M4OSA_Context* context, M4OSA_Void* fileDescrip { if (M4OSA_NULL != pContext) { - M4OSA_free((M4OSA_MemAddr32)pContext); + free(pContext); } *context=M4OSA_NULL; } @@ -301,7 +301,7 @@ M4OSA_ERR M4OSA_fileWriteRamClose(M4OSA_Context context) pContext->IsOpened = M4OSA_FALSE; /* Free the context */ - M4OSA_free((M4OSA_MemAddr32)pContext); + free(pContext); /* Return error */ return err; -- cgit v1.1