commit | f5ccd192230e90f45409633d81b5cf4e8ec7ef13 | [log] [tgz] |
---|---|---|
author | Russ Cox <[email protected]> | Fri Mar 19 21:56:07 2010 -0700 |
committer | Russ Cox <[email protected]> | Fri Mar 19 21:56:07 2010 -0700 |
tree | 777edfd3b1bc72f20abe3eb52f296dc0f1578929 | |
parent | 4978f7e01b0f9ba34716736f56f715291f9ab301 [diff] [blame] |
fix selected warnings from cppcheck Fixes issue 2. R=r CC=re2-dev http://codereview.appspot.com/665041
diff --git a/re2/compile.cc b/re2/compile.cc index 5bab033..8f6ef36 100644 --- a/re2/compile.cc +++ b/re2/compile.cc
@@ -205,8 +205,7 @@ } Compiler::~Compiler() { - if (prog_) - delete prog_; + delete prog_; } bool Compiler::CanAllocInst() {