Old revision #psoqsx609 | New revision #pn4dd0t8d | ||
---|---|---|---|
11 | 11 | ||
12 | 12 | ||
13 | Variant 2: | 13 | Variant 2: |
14 | 14 | if (res == 0) { | |
15 | 15 | std::auto_ptr<SimpleCountedObject> delete_after_throw(this); | |
16 | 16 | FinalRelease(); // may throw, for example ScriptTest/ExecMode | |
17 | 17 | } |