Fixed memory leak and enabled sanatizers
This commit is contained in:
committed by
borgmanJeremy
parent
4f45430036
commit
e5813d2230
3
.gitignore
vendored
3
.gitignore
vendored
@@ -55,4 +55,7 @@ data/flatpak/.flatpak-builder
|
||||
# NVIM
|
||||
*~
|
||||
|
||||
# Jetbrains
|
||||
.idea/
|
||||
|
||||
# End of https://www.gitignore.io/api/snapcraft
|
||||
|
||||
@@ -21,7 +21,7 @@ include(cmake/CompilerWarnings.cmake)
|
||||
|
||||
# sanitizer options if supported by compiler
|
||||
include(cmake/Sanitizers.cmake)
|
||||
# enable_sanitizers(project_options)
|
||||
enable_sanitizers(project_options)
|
||||
|
||||
# allow for static analysis options include(cmake/StaticAnalyzers.cmake)
|
||||
|
||||
|
||||
@@ -139,6 +139,8 @@ PixelateTool::process(QPainter& painter, const QPixmap& pixmap, bool recordUndo)
|
||||
scene.addPixmap(result);
|
||||
|
||||
scene.render(&painter, selection, QRectF());
|
||||
|
||||
delete source;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user