summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxant <xant@dyne.org>2012-12-12 21:25:34 (GMT)
committer xant <xant@dyne.org>2012-12-12 21:25:34 (GMT)
commit4167aea761c5803fa742d78c8e502b6bfbed267c (patch)
treeec3f5a86573dac8db56c865ee3462dc6a3d12774
parent2f5f1026b018345836c4841c47ad1de9af6099d6 (diff)
fixed a major leak
-rw-r--r--core/JMXPin.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/JMXPin.mm b/core/JMXPin.mm
index ce5ab55..ca5e1a4 100644
--- a/core/JMXPin.mm
+++ b/core/JMXPin.mm
@@ -593,12 +593,10 @@ using namespace v8;
// and propagate the signal if that's the case
if ([self isValidData:data]) {
id toRelease = nil;
- UInt32 currentOffset = offset&kJMXPinDataBufferMask;
UInt32 nextOffset = (offset+1)&kJMXPinDataBufferMask;
toRelease = dataBuffer[nextOffset];
dataBuffer[nextOffset] = [data retain];
OSAtomicIncrement32(&offset);
- dataBuffer[currentOffset] = nil;
[toRelease release];
if (sender)
currentSender = sender;