Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Removed potential leak in debug drawing code.
Browse files Browse the repository at this point in the history
Also includes more correct string formatting code in demo.
  • Loading branch information
epreston committed Jul 15, 2012
1 parent 40383ed commit e5b91a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example 1/Classes/Controller/PSHTreeGraphViewController.m
Expand Up @@ -105,7 +105,7 @@ -(void) configureNodeView:(UIView *)nodeView

// labels
leafView.titleLabel.text = [objectWrapper name];
leafView.detailLabel.text = [NSString stringWithFormat:@"%d bytes", [objectWrapper wrappedClassInstanceSize]];
leafView.detailLabel.text = [NSString stringWithFormat:@"%zd bytes", [objectWrapper wrappedClassInstanceSize]];

}

Expand Down
2 changes: 1 addition & 1 deletion Example 1/PSHTreeGraph.xcodeproj/project.pbxproj
Expand Up @@ -285,7 +285,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
LastUpgradeCheck = 0440;
ORGANIZATIONNAME = "Preston Software";
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PSHTreeGraph" */;
Expand Down
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0440"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -44,7 +45,9 @@
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
enableOpenGLFrameCaptureMode = "0"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
Expand Down
2 changes: 1 addition & 1 deletion PSTreeGraphView/PSBaseSubtreeView.m
Expand Up @@ -25,7 +25,7 @@

static UIColor *subtreeBorderColor(void)
{
return [[UIColor colorWithRed:0.0f green:0.5f blue:0.0f alpha:1.0f] retain];
return [UIColor colorWithRed:0.0f green:0.5f blue:0.0f alpha:1.0f];
}

static CGFloat subtreeBorderWidth(void)
Expand Down

0 comments on commit e5b91a4

Please sign in to comment.