mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
more changes to avoid leak warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32093 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8d5395f884
commit
7047f9e6d4
9 changed files with 70 additions and 120 deletions
|
@ -577,16 +577,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
|
|||
{
|
||||
GSIArrayAddItem(&info->array, (GSIArrayItem)((id)s));
|
||||
}
|
||||
#ifdef __clang__
|
||||
{
|
||||
/* We store the object in 'dummy' for no other purpose than to silence
|
||||
* the clang static analyser's warning that we are leaking memory, which
|
||||
* occurs because it doesn't realise that the object was already stored
|
||||
* later deallocation.
|
||||
*/
|
||||
gsPrivateDummy = s;
|
||||
}
|
||||
#endif
|
||||
GS_CONSUMED(s)
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@ -623,16 +614,7 @@ deserializeFromInfo(_NSDeserializerInfo* info)
|
|||
{
|
||||
GSIArrayAddItem(&info->array, (GSIArrayItem)((id)s));
|
||||
}
|
||||
#ifdef __clang__
|
||||
{
|
||||
/* We store the object in 'dummy' for no other purpose than to silence
|
||||
* the clang static analyser's warning that we are leaking memory, which
|
||||
* occurs because it doesn't realise that the object was already stored
|
||||
* later deallocation.
|
||||
*/
|
||||
gsPrivateDummy = s;
|
||||
}
|
||||
#endif
|
||||
GS_CONSUMED(s)
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue