Skip to content

Commit

Permalink
fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Jul 6, 2011
1 parent 788ca99 commit d1e2b3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Classes/DTCoreTextGlyphRun.m
Expand Up @@ -45,10 +45,6 @@ - (void)dealloc
{
CFRelease(_run);
}
if (glyphPositionPoints)
{
CFRelease(glyphPositionPoints);
}

[_attachment release];
[stringIndices release];
Expand Down Expand Up @@ -82,6 +78,7 @@ - (CGRect)frameOfGlyphAtIndex:(NSInteger)index
}
if (!glyphPositionPoints)
{
// this is a pointer to the points inside the run, thus no retain necessary
glyphPositionPoints = CTRunGetPositionsPtr(_run);
}

Expand Down

0 comments on commit d1e2b3e

Please sign in to comment.