Skip to content

Commit

Permalink
fix possible screen corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
KenjiTakahashi committed Mar 30, 2023
1 parent 83cfca5 commit 7240bbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -78,3 +78,4 @@
== 0.6.4:
- Fixed possible corruption due to invalid notification formatting (by @FuzzyNovaGoblin).
- Fixed possible SEGFAULT on a PA server restart.
- Fixed screen corruption on a PA server restart.
2 changes: 2 additions & 0 deletions src/middleware.m
Expand Up @@ -219,6 +219,7 @@ void callback_remove_func(void *self_, uint32_t idx, backend_entry_type type) {
}

void callback_state_func(void *self_, server_state state) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
#if GNUSTEP_BASE_MINOR_VERSION < 24
[NSThread _createThreadForCurrentPthread];
#endif
Expand All @@ -227,6 +228,7 @@ void callback_state_func(void *self_, server_state state) {
[[NSNotificationCenter defaultCenter] postNotificationName: name
object: self
userInfo: nil];
[pool release];
}

@implementation Block
Expand Down

0 comments on commit 7240bbf

Please sign in to comment.