realm/realm-cocoa — pull request #742 by tgoyne (2014-08-05 18:34:36+00:00)
Title: Fix a memory leak when querying tables

The tightdb::Query object was never being deleted, and fortunately doesn't even need to be heap-allocated.

The test is a little fiddly due to trying to avoid false-positives and taking forever to run while still catching the leak.

@alazier