(clientData)
| 305 | * Everything associated with the message is freed up. |
| 306 | * |
| 307 | *---------------------------------------------------------------------- |
| 308 | */ |
| 309 | |
| 310 | static void |
| 311 | DestroyMessage(clientData) |
| 312 | ClientData clientData; /* Info about message widget. */ |
| 313 | { |
| 314 | register Message *msgPtr = (Message *) clientData; |
| 315 | |
| 316 | if (msgPtr->string != NULL) { |
| 317 | ckfree(msgPtr->string); |
| 318 | } |
| 319 | if (msgPtr->textVarName != NULL) { |
| 320 | Tcl_UntraceVar(msgPtr->interp, msgPtr->textVarName, |
| 321 | TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS, |
| 322 | MessageTextVarProc, (ClientData) msgPtr); |
| 323 | ckfree(msgPtr->textVarName); |
| 324 | } |
| 325 | if (msgPtr->border != NULL) { |
| 326 | Tk_Free3DBorder(msgPtr->border); |
| 327 | } |
| 328 | if (msgPtr->fontPtr != NULL) { |
| 329 | Tk_FreeFontStruct(msgPtr->fontPtr); |
| 330 | } |
| 331 | if (msgPtr->fgColorPtr != NULL) { |
| 332 | Tk_FreeColor(msgPtr->fgColorPtr); |
| 333 | } |
| 334 | if (msgPtr->textGC != None) { |
| 335 | Tk_FreeGC(msgPtr->textGC); |
| 336 | } |
| 337 | if (msgPtr->cursor != None) { |
| 338 | Tk_FreeCursor(msgPtr->cursor); |
| 339 | } |
| 340 | ckfree((char *) msgPtr); |
| 341 | } |
nothing calls this directly
no test coverage detected