Don't free buffer of another scope (#401)

This commit is contained in:
Pan7 2017-02-21 18:45:49 +01:00 committed by Jay Dolan
parent d90ddd6cf8
commit 3bc866b623

View file

@ -151,7 +151,6 @@ picoModel_t *PicoModuleLoadModel( const picoModule_t* pm, char* fileName, picoBy
/* use loader provided by module to read the model data */
picoModel_t* model = pm->load( fileName, frameNum, buffer, bufSize );
if ( model == NULL ) {
_pico_free_file( buffer );
return NULL;
}