Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real memory allocation issue #10

Open
omerabbas01 opened this issue Feb 10, 2012 · 4 comments
Open

Real memory allocation issue #10

omerabbas01 opened this issue Feb 10, 2012 · 4 comments

Comments

@omerabbas01
Copy link

egotextview allocating allot memory and not deallocating at all, please help me with this issue.

@omerabbas01
Copy link
Author

Solved half of my problem by deallocating some other objects, But still don't know why its allocating so much memory. Please help me :)

  • (void)dealloc {
    [_mutableAttributedString release], _mutableAttributedString=nil;
    [_markedTextStyle release], _markedTextStyle=nil;
    [_tokenizer release], _tokenizer=nil;
    [_textChecker release], _textChecker=nil;

    [_textContentView release], _textContentView=nil;
    [_selectionView release], _selectionView=nil;

    [_attachmentViews removeAllObjects];
    [_attachmentViews release], _attachmentViews=nil;

    _textWindow=nil;
    [_font release], _font=nil;
    [_attributedString release], _attributedString=nil;
    [_caretView release], _caretView=nil;
    self.menuItemActions=nil;
    self.defaultAttributes=nil;
    self.correctionAttributes=nil;
    [super dealloc];
    }

@BLamy
Copy link

BLamy commented Feb 20, 2012

ARC....

@omerabbas01
Copy link
Author

ARC ?

@renzhaofeng
Copy link

I also meet the same question,it takes too much memory,anyone else solve the question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants