mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
fix retain/release bug deserialising
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22968 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
390661c762
commit
8ad89b9941
2 changed files with 14 additions and 1 deletions
|
@ -670,7 +670,13 @@ deserializeFromInfo(_NSDeserializerInfo* info)
|
|||
else
|
||||
{
|
||||
(*mdSetImp)(d, mdSetSel, o, k);
|
||||
RELEASE(k);
|
||||
/*
|
||||
* Since a dictionary copies its keys rather
|
||||
* than retaining them, we must autorelease
|
||||
* rather than simply releasing as the key may
|
||||
* be referred to by a cross-reference later.
|
||||
*/
|
||||
AUTORELEASE(k);
|
||||
RELEASE(o);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue