From ebc7a783bd1a081e0519baf32fb6d651bf62287f Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan.bastani@ens.fr> Date: Tue, 26 Jun 2012 14:50:16 +0200 Subject: [PATCH] fix bug with @#ifdef in macroprocessor --- preprocessor/macro/MacroDriver.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/preprocessor/macro/MacroDriver.cc b/preprocessor/macro/MacroDriver.cc index 6ac13b02a8..a7c900bd19 100644 --- a/preprocessor/macro/MacroDriver.cc +++ b/preprocessor/macro/MacroDriver.cc @@ -170,15 +170,11 @@ MacroDriver::begin_ifdef(const string &name) try { get_variable(name); - const MacroValue *one = new IntMV(*this, 1); - begin_if(one); - delete one; + begin_if(new IntMV(*this, 1)); } catch (UnknownVariable &) { - const MacroValue *zero = new IntMV(*this, 0); - begin_if(zero); - delete zero; + begin_if(new IntMV(*this, 0)); } } -- GitLab