Skip to content
Browse files

Merge pull request #41 from lantiga/master

Deallocate encoded string
  • Loading branch information...
2 parents 7251ca6 + e725dd0 commit 0ff8845350df00cc596018f83a96d655a2af5380 @lantiga lantiga committed Jun 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 vtkVmtk/IO/vtkvmtkPNGWriter.cxx
View
2 vtkVmtk/IO/vtkvmtkPNGWriter.cxx
@@ -115,6 +115,8 @@ void vtkvmtkPNGWriter::Write()
int output_length = base64_encode(encoded_data,data,length);
this->SetBase64Image(encoded_data);
+ delete[] encoded_data;
+
this->SetWriteToMemory(previousWriteToMemory);
}

0 comments on commit 0ff8845

Please sign in to comment.
Something went wrong with that request. Please try again.