memory leaking [nskeyedunarchiver decodeobjectforkey]


every i slight nsmutabledata leaking i can't figure out block it. thedata's keep count upped after decoder allocated initialized i have thought why. i am stranded keep count 2 during finish slight attempting redeem causes an app crash.



- (void)readvenuearchivefile:(nsstring *)infile key:(nsstring *)inkey
{
nsmutabledata *thedata;
nskeyedunarchiver *decoder;


thedata = [nsdata datawithcontentsoffile:infile];

decoder = [[nskeyedunarchiver alloc] initforreadingwithdata:thedata];

venueiolist = [[decoder decodeobjectforkey:inkey] mutablecopy];

[decoder finishdecoding];

[decoder release];
}


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?