Bug fix. Must close before freeing the structure.
This commit is contained in:
parent
1105e38414
commit
9b570be049
1 changed files with 1 additions and 1 deletions
|
@ -175,8 +175,8 @@ static bool_t fatfsOpen(GFILE* f, const char* fname)
|
|||
static void fatfsClose(GFILE* f)
|
||||
{
|
||||
if ((FIL*)f->obj != 0) {
|
||||
gfxFree( (FIL*)f->obj );
|
||||
f_close( (FIL*)f->obj );
|
||||
gfxFree( (FIL*)f->obj );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue