forked from qt-creator/qt-creator
IdCache: Use delete[] for memory qstrdup allocated
Change-Id: Id39e31191116196e1a9385e0d22bef0bfbb6c861 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -88,7 +88,7 @@ struct IdCache : public QHash<StringHolder, int>
|
||||
~IdCache()
|
||||
{
|
||||
for (IdCache::iterator it = begin(); it != end(); ++it)
|
||||
free(const_cast<char *>(it.key().str));
|
||||
delete[](const_cast<char *>(it.key().str));
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user