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
bdbb3514
Commit
bdbb3514
authored
Jun 03, 2016
by
Ken Thomases
Committed by
Alexandre Julliard
Jun 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use a more idiomatic pattern for an autorelease pool around a loop.
Signed-off-by:
Ken Thomases
<
ken@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9035e58e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+5
-4
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
bdbb3514
...
...
@@ -2318,11 +2318,11 @@ static NSString* WineLocalizedString(unsigned int stringID)
*/
static
void
PerformRequest
(
void
*
info
)
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
WineApplicationController
*
controller
=
[
WineApplicationController
sharedController
];
for
(;;)
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
__block
dispatch_block_t
block
;
dispatch_sync
(
controller
->
requestsManipQueue
,
^
{
...
...
@@ -2336,15 +2336,16 @@ static void PerformRequest(void *info)
});
if
(
!
block
)
{
[
pool
release
];
break
;
}
block
();
[
block
release
];
[
pool
release
];
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
}
[
pool
release
];
}
/***********************************************************************
...
...
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