fixed test error in EOAttribute -newValueForBytes:length:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21156 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2005-04-24 14:18:59 +00:00
parent 9c4a91f7ce
commit 2e0f2da446
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
2005-04-20 Manuel Guesdon <mguesdon@orange-concept.com> 2005-04-24 Manuel Guesdon <mguesdon@orange-concept.com>
* EOAccess/EOAttribute.m:
o fixed test error in -newValueForBytes:length:
2005-04-24 Manuel Guesdon <mguesdon@orange-concept.com>
* EOControl/EOPriv.h: added GDL2_allocWithZone() * EOControl/EOPriv.h: added GDL2_allocWithZone()
* EOAccess/EOAttribute.m: * EOAccess/EOAttribute.m:

View file

@ -1110,7 +1110,7 @@ return nexexp
// valueFactoryMethod returns an autoreleased value // valueFactoryMethod returns an autoreleased value
value = [(id)valueClass performSelector: _valueFactoryMethod value = [(id)valueClass performSelector: _valueFactoryMethod
withObject: value]; withObject: value];
if (value != value) if (value != tmp)
{ {
RETAIN(value); RETAIN(value);
RELEASE(tmp); RELEASE(tmp);