Skip to content

memory leak of JAListViewItem in non ARC  #10

@mammaiap

Description

@mammaiap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions