Skip to content

A memory leak in ReaderCommentsViewController #21039

@crazytonyli

Description

@crazytonyli

Expected behavior

ReaderCommentsViewController instance is released after user exist the post comments screen.

Actual behavior

ReaderCommentsViewController instance is NOT released after user exist the post comments screen.

Steps to reproduce the behavior

  1. Add a dealloc method to ReaderCommentsViewController.m method, with a statement like NSLog(@"dealloc").
  2. Set a breakpoint in the dealloc method.
  3. Launch the app from Xcode.
  4. Navigate to Reader tab and tap on the "View Comment" button on a post.
  5. Tap the back button on the post comments screen.
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

The trunk branch, db15a47

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions