Summary: | Memory leak when sampling a hidden, color-labeled filter layer | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | code |
Component: | Filter Layers | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimula73 |
Priority: | NOR | ||
Version: | 5.1.5 | ||
Target Milestone: | --- | ||
Platform: | Homebrew (macOS) | ||
OS: | macOS | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/4c9364617167a1a195713366fc697ba734de2735 | Version Fixed In: | |
Sentry Crash Report: |
Description
code
2023-06-28 18:40:41 UTC
Git commit 4c9364617167a1a195713366fc697ba734de2735 by Dmitry Kazakov. Committed on 29/06/2023 at 14:37. Pushed by dkazakov into branch 'master'. Fix a memory "leak" in LambdaCommand used in the fill tool Lambdas can capture shared pointers, which can potentially prevent temporary paint devices from being released. That is exactly what happened in the tagged-fill tool, the reference paint device was captured by the lambda and never freed (until the undo command is expelled from the stack). M +6 -0 libs/command/kis_command_utils.cpp https://invent.kde.org/graphics/krita/-/commit/4c9364617167a1a195713366fc697ba734de2735 |