From 3da96c981ca231c665e9dddd7de87debe7baa05d Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 30 May 2011 11:40:26 +0000 Subject: [PATCH] Add a couple of __strong annotations to pointers. Any non-id pointer that can store GC'd memory must be __strong. Currently, this annotation is largely ignored, because the runtime is a lot more lax about what may store pointers than Apple's, but this will be tightened up in the future. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33205 72102866-910b-0410-8b05-ffd578937521 --- Source/NSData.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSData.m b/Source/NSData.m index fdbff085f..1c242fb1d 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -316,7 +316,7 @@ failure: @interface NSDataStatic : NSData { NSUInteger length; - void *bytes; + __strong void *bytes; } @end @@ -329,7 +329,7 @@ failure: @interface NSMutableDataMalloc : NSMutableData { NSUInteger length; - void *bytes; + __strong void *bytes; #if GS_WITH_GC BOOL owned; #else