From 495427773173469adc66188ce6fd30f0a72e9830 Mon Sep 17 00:00:00 2001 From: randomguy3 Date: Tue, 17 Jan 2012 18:04:18 +0000 Subject: Fix NSMapTable init call git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@386 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64 --- tikzit/src/common/Graph.h | 2 -- tikzit/src/common/Graph.m | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tikzit/src/common/Graph.h b/tikzit/src/common/Graph.h index d9b4a3c..e629464 100644 --- a/tikzit/src/common/Graph.h +++ b/tikzit/src/common/Graph.h @@ -49,8 +49,6 @@ BOOL dirty; // keep track of when inEdges and outEdges need an update NSMutableArray *nodes; NSMutableArray *edges; -// NSSet *nodesCache; -// NSSet *edgesCache; NSMapTable *inEdges; NSMapTable *outEdges; diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m index 63476f3..e83a99c 100644 --- a/tikzit/src/common/Graph.m +++ b/tikzit/src/common/Graph.m @@ -44,8 +44,8 @@ if (dirty) { [inEdges release]; [outEdges release]; - inEdges = [[NSMapTable alloc] init]; - outEdges = [[NSMapTable alloc] init]; + inEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10]; + outEdges = [[NSMapTable alloc] initWithKeyOptions:NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory capacity:10]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; -- cgit v1.2.3