From f00b5e787cc568368a82a35e85c83ae1e1d373e8 Mon Sep 17 00:00:00 2001 From: kiirala Date: Tue, 24 Jul 2007 12:47:31 +0000 Subject: [PATCH] Fixed a memory leak in lighting effects rendering --- src/display/nr-filter-diffuselighting.cpp | 1 + src/display/nr-filter-specularlighting.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/display/nr-filter-diffuselighting.cpp b/src/display/nr-filter-diffuselighting.cpp index 96a2e9ca6..500a275af 100644 --- a/src/display/nr-filter-diffuselighting.cpp +++ b/src/display/nr-filter-diffuselighting.cpp @@ -164,6 +164,7 @@ int FilterDiffuseLighting::render(FilterSlot &slot, Matrix const &trans) { //finishing slot.set(_output, out); + nr_pixblock_release(in); delete in; return 0; } diff --git a/src/display/nr-filter-specularlighting.cpp b/src/display/nr-filter-specularlighting.cpp index 9957f4d59..565fa5e05 100644 --- a/src/display/nr-filter-specularlighting.cpp +++ b/src/display/nr-filter-specularlighting.cpp @@ -174,6 +174,7 @@ int FilterSpecularLighting::render(FilterSlot &slot, Matrix const &trans) { //finishing slot.set(_output, out); + nr_pixblock_release(in); delete in; return 0; } -- 2.30.2