[vkgen] Fix ignored field init and dealloc

I had somehow missed vkfieldignore in a consistency pass, or just messed
up its initialization (and thus deallocation) resulting in a double-free
of the strings.
This commit is contained in:
Bill Currie 2023-03-21 17:53:55 +09:00
parent 3fbac33ee8
commit 2fbc27f6a0

View file

@ -9,14 +9,12 @@
-init:(PLItem *)item struct:(Struct *)strct field:(string)fname
{
self = [super init];
self = [super init:item struct:strct field:fname];
if (!self) {
return self;
}
line = [item line];
struct_name = str_hold ([strct outname]);
field_name = str_hold (fname);
return self;
}
@ -25,13 +23,6 @@
return self;
}
-(void)dealloc
{
str_free (struct_name);
str_free (field_name);
[super dealloc];
}
-writeParseData
{
return self;