summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tikzit/src/common/Graph.h2
-rw-r--r--tikzit/src/common/Graph.m4
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];