Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1cb09660
Commit
1cb09660
authored
Sep 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix a couple of leaks in the new console code.
parent
e78c2117
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
console.c
server/console.c
+7
-2
No files found.
server/console.c
View file @
1cb09660
...
...
@@ -381,7 +381,11 @@ static struct screen_buffer *create_console_output( struct console_input *consol
struct
screen_buffer
*
screen_buffer
;
int
i
;
if
(
!
(
screen_buffer
=
alloc_object
(
&
screen_buffer_ops
)))
return
NULL
;
if
(
!
(
screen_buffer
=
alloc_object
(
&
screen_buffer_ops
)))
{
if
(
fd
!=
-
1
)
close
(
fd
);
return
NULL
;
}
screen_buffer
->
mode
=
ENABLE_PROCESSED_OUTPUT
|
ENABLE_WRAP_AT_EOL_OUTPUT
;
screen_buffer
->
input
=
console_input
;
screen_buffer
->
cursor_size
=
100
;
...
...
@@ -1438,7 +1442,7 @@ DECL_HANDLER(alloc_console)
}
close_handle
(
current
->
process
,
in
);
}
free_console
(
process
);
release_object
(
console
);
}
the_end
:
release_object
(
process
);
...
...
@@ -1601,6 +1605,7 @@ DECL_HANDLER(create_console_output)
if
(
console_input_is_bare
(
console
)
^
(
fd
!=
-
1
))
{
close
(
fd
);
release_object
(
console
);
set_error
(
STATUS_INVALID_HANDLE
);
return
;
}
...
...
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