Code

Fixed a memory leak in lighting effects rendering
authorkiirala <kiirala@users.sourceforge.net>
Tue, 24 Jul 2007 12:47:31 +0000 (12:47 +0000)
committerkiirala <kiirala@users.sourceforge.net>
Tue, 24 Jul 2007 12:47:31 +0000 (12:47 +0000)
src/display/nr-filter-diffuselighting.cpp
src/display/nr-filter-specularlighting.cpp

index 96a2e9ca6b24c5dd82e1fcb57a83c9d8b1b8b6dc..500a275afd7fb800931cd73b910530ca2c995fe9 100644 (file)
@@ -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;
 }
index 9957f4d591a01c50c86fe8ea5ebd3bc2f33d4ad0..565fa5e057b5101ef8c70672d141765d321963ef 100644 (file)
@@ -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;
 }