remove memSize

This commit is contained in:
lyon 2021-08-30 15:01:44 +08:00
parent c4d9b999ea
commit c0a46ad7cb
3 changed files with 2 additions and 4 deletions

@ -1 +1 @@
Subproject commit 727c5172311a168cc5ad187683ee4b166a51e3e7
Subproject commit f988d98097779075a01624a0e6eb27c432b1ea58

View File

@ -4,7 +4,7 @@
static void deinit(dataTest_t *self)
{
pikaFree(self, self->memSize);
pikaFree(self, sizeof(dataTest_t));
}
static void init(dataTest_t *self, Args *args)
@ -25,7 +25,6 @@ static void init(dataTest_t *self, Args *args)
dataTest_t *New_dataTest(Args *args)
{
dataTest_t *self = pikaMalloc(sizeof(dataTest_t));
self->memSize = sizeof(dataTest_t);
self->init = init;
self->init(self, args);
return self;

View File

@ -9,7 +9,6 @@ struct Class_dataTest
void *context;
int32_t a;
int32_t b;
uint16_t memSize;
/* operation */
void (*deinit)(dataTest_t *self);