| 313 | } |
| 314 | |
| 315 | void |
| 316 | MyFreeBitMap(struct BitMap *bmp) |
| 317 | { |
| 318 | int j; |
| 319 | struct MyBitMap *bm = (struct MyBitMap *) bmp; |
| 320 | |
| 321 | for (j = 0; j < bm->bm.Depth; ++j) { |
| 322 | if (bm->bm.Planes[j]) { |
| 323 | if (bm->mflags & MEMF_CHIP) |
| 324 | FreeRaster(bm->bm.Planes[j], bm->xsize, bm->ysize); |
| 325 | else |
| 326 | FreeMem(bm->bm.Planes[j], RASSIZE(bm->xsize, bm->ysize)); |
| 327 | } |
| 328 | } |
| 329 | free(bm); |
| 330 | } |
| 331 | |
| 332 | #ifdef TESTING |
| 333 | void |
no outgoing calls
no test coverage detected