Permalink
Browse files

Plug a memory leak.

  • Loading branch information...
martinh committed Feb 19, 2012
1 parent 30e5c09 commit b13bc110904919b5758b498d65cf3ce9af008310
Showing with 1 addition and 1 deletion.
  1. +1 −1 objc/Nu.m
View
@@ -1483,7 +1483,7 @@ static id get_nu_value_from_objc_value(void *objc_value, const char *typeString)
case '#':
{
Class c = *((Class *)objc_value);
- return c ? [[NuClass alloc] initWithClass:c] : Nu__null;
+ return c ? [[[NuClass alloc] initWithClass:c] autorelease] : Nu__null;
}
#ifndef __ppc__
case 'c':

0 comments on commit b13bc11

Please sign in to comment.