Permalink
Browse files

Removed potential leak in debug drawing code.

Also includes more correct string formatting code in demo.
  • Loading branch information...
epreston committed Jul 15, 2012
1 parent 40383ed commit e5b91a495b7ed5e82555f72f7a3bf541320ba436
@@ -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]];
}
@@ -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" */;
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
+ LastUpgradeVersion = "0440"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -44,7 +45,9 @@
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
+ enableOpenGLFrameCaptureMode = "0"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
@@ -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)

0 comments on commit e5b91a4

Please sign in to comment.