set free'd pointer to NULL
This commit is contained in:
parent
2cfb86b5b5
commit
7ae293d566
|
@ -1002,7 +1002,10 @@ static int lu8g_close_display( lua_State *L )
|
||||||
|
|
||||||
// free up allocated page buffer
|
// free up allocated page buffer
|
||||||
if (lud->pb.buf != NULL)
|
if (lud->pb.buf != NULL)
|
||||||
|
{
|
||||||
c_free( lud->pb.buf );
|
c_free( lud->pb.buf );
|
||||||
|
lud->pb.buf = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue