Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

free edge

Signed-off-by: Thiago Farina <tfarina@chromium.org>
  • Loading branch information...
commit eb143ea5109d2a650d2ac8241fbeab77e7da40e3 1 parent 6d7e0ca
Thiago Farina authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  src/state_test.cc
3  src/state_test.cc
@@ -41,6 +41,9 @@ TEST(State, Basic) {
41 41
42 42 EXPECT_EQ("cat in1 in2 > out", edge->EvaluateCommand());
43 43
  44 + // Release the edge after we are done with it.
  45 + delete edge;
  46 +
44 47 EXPECT_FALSE(state.GetNode("in1")->dirty());
45 48 EXPECT_FALSE(state.GetNode("in2")->dirty());
46 49 EXPECT_FALSE(state.GetNode("out")->dirty());

0 comments on commit eb143ea

Evan Martin

This isn't right; the edges are owned by the State object.

Thiago Farina
Please sign in to comment.
Something went wrong with that request. Please try again.