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

memory leak of JAListViewItem in non ARC #10

Open
mammaiap opened this issue Nov 14, 2014 · 0 comments
Open

memory leak of JAListViewItem in non ARC #10

mammaiap opened this issue Nov 14, 2014 · 0 comments

Comments

@mammaiap
Copy link

Hi ,

I found that "JAListViewItem and DemoView" are not deallocated.

if i add the autorelease in the line

  • (JAListViewItem *)listView:(JAListView *)listView viewAtIndex:(NSUInteger)index
    {
    DemoView *view = [[DemoView demoView]autorelease];

    return view;
    }

then it JAListViewItem and DemoView "dealloc " was called...

but the problem is that...

when i call the reloadData... and try to drag and drop" it crash and it says "view is already released"...
that means "list view still showing the released views"...that makes the crash..

if i not add the autorelease then it wont crash... but "JAListViewItem and DemoView" dealloc is not yet called...

please help me to fix the problem. i need to fix the memory leak as well as "crash"...

Thanks & Regards,
Muthu

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

1 participant