Skip to content
Browse files

correctly clear out the thumbView when the document is unloaded.

  • Loading branch information...
1 parent f1aa0f6 commit 305cbdbb57c116362abb3dce7acb389215f06c73 @urkle committed Feb 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Sources/ReaderPagebarView.m
View
4 Sources/ReaderPagebarView.m
@@ -54,7 +54,9 @@ - (void)setDocument:(ReaderDocument *)newdocument
document = [newdocument retain];
[self clearThumbViews];
- pageThumbView.tag = 0;
+ [pageThumbView removeFromSuperview];
+ [pageThumbView release];
+ pageThumbView = nil;
pageNumberLabel.tag = 0;
trackControl.tag = 0;
[self updatePageNumberText:[document.pageNumber integerValue]];

0 comments on commit 305cbdb

Please sign in to comment.
Something went wrong with that request. Please try again.