Loading

Revision differences

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