moved the inttostr conversion buffer into moo_t

This commit is contained in:
hyunghwan.chung
2018-02-17 13:32:30 +00:00
parent f0cd3472e7
commit 9531c6a7e8
3 changed files with 89 additions and 27 deletions

View File

@ -257,6 +257,21 @@ void moo_fini (moo_t* moo)
moo->log.capa = 0;
moo->log.len = 0;
}
if (moo->inttostr.xbuf.ptr)
{
moo_freemem (moo, moo->inttostr.xbuf.ptr);
moo->inttostr.xbuf.ptr = MOO_NULL;
moo->inttostr.xbuf.capa = 0;
moo->inttostr.xbuf.len = 0;
}
if (moo->inttostr.t.ptr)
{
moo_freemem (moo, moo->inttostr.t.ptr);
moo->inttostr.t.ptr = MOO_NULL;
moo->inttostr.t.capa = 0;
}
}
int moo_setoption (moo_t* moo, moo_option_t id, const void* value)