From cf029e0a2e58ce1ba3f40ae6192cc0418fcca97c Mon Sep 17 00:00:00 2001 From: Robert Heinrich Date: Wed, 21 Mar 2012 13:57:55 +0100 Subject: [PATCH] fixed memory leak in liquids.cpp --- plugins/CMakeLists.txt | 2 -- plugins/liquids.cpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 8d9935cd7..ae2d48432 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -116,8 +116,6 @@ if(BUILD_VAMPCHECK) endif() # alternative version of liquids which can be used non-interactively after configuring it -# similar to digcircle: simply store stuff in statics and use it when called without parameters -# this will allow to map the command to a keybinding for much more convenient messing with the map OPTION(BUILD_LIQUIDSGO "Build the liquidsgo plugin." ON) if(BUILD_LIQUIDSGO) add_subdirectory(liquidsgo) diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index aff45b66e..3bf67f4d2 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -605,5 +605,9 @@ command_result df_liquids (color_ostream &out_, vector & parameters) out << command << " : unknown command." << endl; } } + + //cleanup + delete brush; + return CR_OK; }