mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
Extract glyph generation code into separate class.
Plus some additional cleanup. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cb1c11a00c
commit
ffd3b2f332
8 changed files with 1295 additions and 844 deletions
|
@ -383,7 +383,7 @@ container? necessary? */
|
|||
if (num_rects == rect_array_size)
|
||||
{
|
||||
rect_array_size += 4;
|
||||
rect_array = realloc(rect_array, sizeof(NSRect) * rect_array_size);
|
||||
rect_array = objc_realloc(rect_array, sizeof(NSRect) * rect_array_size);
|
||||
}
|
||||
rect_array[num_rects++] = r;
|
||||
}
|
||||
|
@ -2036,12 +2036,12 @@ this file describes this.
|
|||
}
|
||||
if (lf->points)
|
||||
{
|
||||
free(lf->points);
|
||||
objc_free(lf->points);
|
||||
lf->points = NULL;
|
||||
}
|
||||
if (lf->attachments)
|
||||
{
|
||||
free(lf->attachments);
|
||||
objc_free(lf->attachments);
|
||||
lf->attachments = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -2156,12 +2156,12 @@ no_soft_invalidation:
|
|||
{
|
||||
if (lf->points)
|
||||
{
|
||||
free(lf->points);
|
||||
objc_free(lf->points);
|
||||
lf->points = NULL;
|
||||
}
|
||||
if (lf->attachments)
|
||||
{
|
||||
free(lf->attachments);
|
||||
objc_free(lf->attachments);
|
||||
lf->attachments = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue