"Ferdig" med øving 2
This commit is contained in:
@@ -49,7 +49,7 @@ int main(int argc, char** argv)
|
||||
// Simple fix to memleak:
|
||||
float* old_configuration = present_configuration;
|
||||
present_configuration = crw::step(size, present_configuration);
|
||||
delete old_configuration;
|
||||
delete[] old_configuration;
|
||||
float present_elongation = crw::elongation(size, present_configuration);
|
||||
|
||||
if(present_elongation > extreme_elongation)
|
||||
|
||||
Reference in New Issue
Block a user