lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix memleak: temporary skyline objects for systems were never delete


From: Dan Eble
Subject: Re: Fix memleak: temporary skyline objects for systems were never deleted (issue 4923048)
Date: Sat, 27 Aug 2011 21:31:55 -0400

On 2011-08-27, at 04:20 , address@hidden wrote:

> passes make and reg tests
> 
> http://codereview.appspot.com/4923048/


You could clean up Skyline::distance by pulling lines 532-548 into their own 
function and letting Skyline::distance call it with different options:

if (horizon_padding != 0.0)
  {
    Skyline padded_this(. . .);
    Skyline padded_other(. . .);
    return unpadded_distance(padded_this, padded_other);
  }
else
  {
    return unpadded_distance(this, &other);
  }
-- 
Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]