Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5685b8d

Browse files
Clean up Qt socket notifier to avoid spurious interrupt handler calls
Closes#29688Objects without a parent are not necessarily cleaned up in PyQt whentheir reference count reaches zero, and must be explicitly cleaned upwith `deleteLater()`This prevents the notifier firing after the signal handling was supposedto have been reset to its previous state.
1 parent9340190 commit5685b8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎lib/matplotlib/backend_bases.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,7 @@ def save_args_and_handle_sigint(*args):
16551655
finally:
16561656
wsock.close()
16571657
rsock.close()
1658+
notifier.deleteLater()
16581659
signal.set_wakeup_fd(old_wakeup_fd)
16591660
signal.signal(signal.SIGINT,old_sigint_handler)
16601661
ifhandler_argsisnotNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp