If it's possible to destroy this regexp without recurring, do so and return true. Else return false.
| 67 | // If it's possible to destroy this regexp without recurring, |
| 68 | // do so and return true. Else return false. |
| 69 | bool Regexp::QuickDestroy() { |
| 70 | if (nsub_ == 0) { |
| 71 | delete this; |
| 72 | return true; |
| 73 | } |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | // Lazily allocated. |
| 78 | static Mutex* ref_mutex; |