| 14948 | } |
| 14949 | #endif |
| 14950 | NK_API void |
| 14951 | nk_free(struct nk_context *ctx) |
| 14952 | { |
| 14953 | NK_ASSERT(ctx); |
| 14954 | if (!ctx) return; |
| 14955 | nk_buffer_free(&ctx->memory); |
| 14956 | if (ctx->use_pool) |
| 14957 | nk_pool_free(&ctx->pool); |
| 14958 | |
| 14959 | nk_zero(&ctx->input, sizeof(ctx->input)); |
| 14960 | nk_zero(&ctx->style, sizeof(ctx->style)); |
| 14961 | nk_zero(&ctx->memory, sizeof(ctx->memory)); |
| 14962 | |
| 14963 | ctx->seq = 0; |
| 14964 | ctx->build = 0; |
| 14965 | ctx->begin = 0; |
| 14966 | ctx->end = 0; |
| 14967 | ctx->active = 0; |
| 14968 | ctx->current = 0; |
| 14969 | ctx->freelist = 0; |
| 14970 | ctx->count = 0; |
| 14971 | } |
| 14972 | NK_API void |
| 14973 | nk_clear(struct nk_context *ctx) |
| 14974 | { |
no test coverage detected