| 160 | { |
| 161 | |
| 162 | int JBlob::release() |
| 163 | { |
| 164 | int rc = --refCounter; |
| 165 | if (rc != 0) |
| 166 | return rc; |
| 167 | |
| 168 | if (blob) |
| 169 | { |
| 170 | LocalStatus status; |
| 171 | CheckStatusWrapper statusWrapper(&status); |
| 172 | |
| 173 | freeEngineData(&statusWrapper); |
| 174 | } |
| 175 | if (blob) |
| 176 | { |
| 177 | // normal cleanup failed, take minimum precautions before deleting JBlob |
| 178 | blob->blb_interface = NULL; |
| 179 | blob = NULL; |
| 180 | } |
| 181 | delete this; |
| 182 | |
| 183 | return 0; |
| 184 | } |
| 185 | |
| 186 | int JTransaction::release() |
| 187 | { |
no test coverage detected