Fixed memory leak and enabled sanatizers

This commit is contained in:
Jeremy Borgman
2020-09-11 11:09:21 -05:00
committed by borgmanJeremy
parent 4f45430036
commit e5813d2230
3 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@@ -55,4 +55,7 @@ data/flatpak/.flatpak-builder
# NVIM
*~
# Jetbrains
.idea/
# End of https://www.gitignore.io/api/snapcraft

View File

@@ -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)

View File

@@ -139,6 +139,8 @@ PixelateTool::process(QPainter& painter, const QPixmap& pixmap, bool recordUndo)
scene.addPixmap(result);
scene.render(&painter, selection, QRectF());
delete source;
}
void