facebook/facebook-ios-sdk — Issue #400: Memory leak in APICallsViewController
Author: Frizlab
Created: 2011-10-12 00:21:58+00:00
State: open

There is a small memory leak in APICallsViewController: a variable is set to nil, _then_ released!
Here is a fix:

```
diff --git a/sample/Hackbook/Hackbook/APICallsViewController.m b/sample/Hackbook/Hackbook/APICallsViewController.m
index 54cb87e..03d2af1 100644
--- a/sample/Hackbook/Hackbook/APICallsViewController.m
+++ b/sample/Hackbook/Hackbook/APICallsViewController.m
@@ -980,8 +980,8 @@
case kAPIGetAppUsersFriendsNotUsing:
{
// Save friend results
- savedAPIResult = nil;
[savedAPIResult release];
+ savedAPIResult = nil;
// Many results
if ([result isKindOfClass:[NSArray class]]) {
savedAPIResult = [[NSMutableArray alloc] initWithArray:result copyItems:YES];
```