Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
7ae293d5
Commit
7ae293d5
authored
Feb 25, 2015
by
devsaurus
Browse files
set free'd pointer to NULL
parent
2cfb86b5
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/u8g.c
View file @
7ae293d5
...
@@ -1002,7 +1002,10 @@ static int lu8g_close_display( lua_State *L )
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment