Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Xf86 Video Fbturbo
Commits
e939cc3c
Commit
e939cc3c
authored
Mar 12, 2013
by
Siarhei Siamashka
Browse files
Free sunxi_disp_t struct directly from sunxi_disp_close()
Signed-off-by:
Siarhei Siamashka
<
siarhei.siamashka@gmail.com
>
parent
19ac8389
Changes
2
Show whitespace changes
Inline
Side-by-side
src/fbdev.c
View file @
e939cc3c
...
...
@@ -996,7 +996,6 @@ FBDevCloseScreen(CLOSE_SCREEN_ARGS_DECL)
if
(
fPtr
->
sunxi_disp_private
)
{
sunxi_disp_close
(
fPtr
->
sunxi_disp_private
);
free
(
fPtr
->
sunxi_disp_private
);
fPtr
->
sunxi_disp_private
=
NULL
;
}
...
...
src/sunxi_disp.c
View file @
e939cc3c
...
...
@@ -144,6 +144,7 @@ int sunxi_disp_close(sunxi_disp_t *ctx)
close
(
ctx
->
fd_fb
);
close
(
ctx
->
fd_disp
);
ctx
->
fd_disp
=
-
1
;
free
(
ctx
);
}
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