mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
3fbac33ee8
commit
2fbc27f6a0
1 changed files with 1 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue