GIRFunction: Fix memory corruption #6

Merged
Letterus merged 1 commits from js/objgtkgen:girfunction-fix-memory-corruption into main 8 months ago
  1. 11
      src/GIR/GIRFunction.m

11
src/GIR/GIRFunction.m

@ -47,9 +47,14 @@
{
self = [super init];
elementTypeName = @"GIRFunction";
parameters = [OFMutableArray array];
instanceParameters = [OFMutableArray array];
@try {
elementTypeName = @"GIRFunction";
parameters = [[OFMutableArray alloc] init];
instanceParameters = [[OFMutableArray alloc] init];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}

Loading…
Cancel
Save