diff options
author | Shyam Pallapothu <shyamp@google.com> | 2011-04-21 09:48:41 -0700 |
---|---|---|
committer | Shyam Pallapothu <shyamp@google.com> | 2011-04-21 09:48:41 -0700 |
commit | 694816d7291f17364502ac5d3319684a0b180860 (patch) | |
tree | 21a35b57a0eb154a49999407f466b5fa148d224b /libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c | |
parent | 32ed3f4dad00f8a65f7e6b38402c70d5341c57eb (diff) | |
download | frameworks_av-694816d7291f17364502ac5d3319684a0b180860.zip frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.gz frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.bz2 |
Fix for issue 4133431 "Remove OSAL layer" in engine part
Change-Id: I98f98691048a5afc6f691b0cc3cec92e458e8f44
Diffstat (limited to 'libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c')
-rwxr-xr-x | libvideoeditor/osal/src/M4OSA_FileWriter_RAM.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |