diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-04-21 15:13:38 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-04-29 18:03:39 +0200 |
commit | 3aeeb8d113f740293435bae3ee1c7316fb984a60 (patch) | |
tree | 1ad420ad33bc3df0988a466555803a2a38d20cfd | |
parent | ce12b4bd3a824f043fbcb5827381340104b92bf6 (diff) |
macOS: Remove un-needed auto-release pools in QCocoaInputContext
These functions do not push much pressure on memory to warrant separate
pool, and are otherwise called as part of the normal runloop which has
its own pool.
Change-Id: If84a899edc4e8cefbf58ecb55d46848ccd69b33b
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoainputcontext.mm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoainputcontext.mm b/src/plugins/platforms/cocoa/qcocoainputcontext.mm index 7194da5433..265a8e133f 100644 --- a/src/plugins/platforms/cocoa/qcocoainputcontext.mm +++ b/src/plugins/platforms/cocoa/qcocoainputcontext.mm @@ -116,7 +116,6 @@ void QCocoaInputContext::commit() if (!view) return; - QMacAutoReleasePool pool; [view unmarkText]; [view.inputContext discardMarkedText]; @@ -147,7 +146,6 @@ void QCocoaInputContext::reset() if (!view) return; - QMacAutoReleasePool pool; if (NSTextInputContext *ctxt = [NSTextInputContext currentInputContext]) { [ctxt discardMarkedText]; [view unmarkText]; |