libebml: code cleaning
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@757 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
parent
83cc857424
commit
7922aef03d
@ -92,7 +92,7 @@ filepos_t EbmlBinary::ReadData(IOCallback & input, ScopeMode ReadFully)
|
||||
return GetSize();
|
||||
}
|
||||
|
||||
Data = (binary *)malloc(GetSize() * sizeof(binary));
|
||||
Data = (binary *)malloc(GetSize());
|
||||
if (Data == NULL)
|
||||
throw CRTError(std::string("Error allocating data"));
|
||||
SetValueIsSet();
|
||||
|
Loading…
Reference in New Issue
Block a user