mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Bugfix reported by stark@easynet.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4e46a29786
commit
c79cc6e6e3
1 changed files with 11 additions and 9 deletions
|
@ -203,15 +203,17 @@ extern NSRecursiveLock *gnustep_global_lock;
|
|||
*/
|
||||
#define ASSIGN(object,value) ({\
|
||||
if (value != object) \
|
||||
if (value) \
|
||||
{ \
|
||||
[value retain]; \
|
||||
} \
|
||||
if (object) \
|
||||
{ \
|
||||
[object release]; \
|
||||
} \
|
||||
object = value; \
|
||||
{ \
|
||||
if (value) \
|
||||
{ \
|
||||
[value retain]; \
|
||||
} \
|
||||
if (object) \
|
||||
{ \
|
||||
[object release]; \
|
||||
} \
|
||||
object = value; \
|
||||
} \
|
||||
})
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue