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; }