mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
Prevent potential crashes due to invalid pointers left in text
containers and layout managers when their respective layout manager and text storage are deallocated. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d69b1eed65
commit
514393b9d6
3 changed files with 13 additions and 0 deletions
|
@ -2918,6 +2918,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
[self _freeLayout];
|
||||
for (i = 0, tc = textcontainers; i < num_textcontainers; i++, tc++)
|
||||
{
|
||||
[tc->textContainer setLayoutManager: nil];
|
||||
[tc->textContainer release];
|
||||
}
|
||||
free(textcontainers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue