| 231 | |
| 232 | |
| 233 | int RRTransDestroy(void *handle) |
| 234 | { |
| 235 | _vgl_disableFaker(); |
| 236 | |
| 237 | int ret = 0; |
| 238 | try |
| 239 | { |
| 240 | VGLTrans *vglconn = (VGLTrans *)handle; |
| 241 | if(!vglconn) THROW("Invalid handle"); |
| 242 | delete vglconn; |
| 243 | } |
| 244 | catch(std::exception &e) |
| 245 | { |
| 246 | snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e), |
| 247 | e.what()); |
| 248 | ret = -1; |
| 249 | } |
| 250 | |
| 251 | _vgl_enableFaker(); |
| 252 | |
| 253 | return ret; |
| 254 | } |
| 255 | |
| 256 | |
| 257 | const char *RRTransGetError(void) |
nothing calls this directly
no test coverage detected