fixed memory leak in liquids.cpp

develop
Robert Heinrich 2012-03-21 13:57:55 +01:00
parent 2e62f5fd12
commit cf029e0a2e
2 changed files with 4 additions and 2 deletions

@ -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)

@ -605,5 +605,9 @@ command_result df_liquids (color_ostream &out_, vector <string> & parameters)
out << command << " : unknown command." << endl;
}
}
//cleanup
delete brush;
return CR_OK;
}