DDMathParser author here.
I sure hope this isn't a leak in my code, but if the reproduction case is as simple as you say it is, then it's sure possible. The static analyzer isn't showing me any problems with the code, but the static analyzer also isn't perfect.
Here's what I need to debug this:
- What is
string
? It's obviously an NSString
variable, but I need to know the contents
- Are you doing anything else with
DDMathParser
, or is it just this one line?
Edit
From your other question, I saw that you were using the string @"1+2"
. When I run that code in Instruments, I get no leaks (both with ARC and without). So yeah, I'm going to need a lot more information.