From 608b7c3581fa90de7c477430ad01f5d817222dc5 Mon Sep 17 00:00:00 2001 From: Christophe Mateos Date: Thu, 5 Jan 2017 22:40:14 +0100 Subject: [PATCH] Fix crash upon loading an OBJ model. Was due to a double-free execution... --- libs/picomodel/picomodel.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/picomodel/picomodel.c b/libs/picomodel/picomodel.c index b8f185cd..10281ec3 100644 --- a/libs/picomodel/picomodel.c +++ b/libs/picomodel/picomodel.c @@ -239,11 +239,6 @@ picoModel_t *PicoLoadModel( char *fileName, int frameNum ){ } } - /* free memory used by file buffer */ - if ( buffer ) { - _pico_free_file( buffer ); - } - return model; }