From: kiirala Date: Tue, 24 Jul 2007 12:47:31 +0000 (+0000) Subject: Fixed a memory leak in lighting effects rendering X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f00b5e787cc568368a82a35e85c83ae1e1d373e8;p=inkscape.git Fixed a memory leak in lighting effects rendering --- 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; }