More TODO resolution. Thanks to someone (mikeash?) in irc.freenode.org/#macdev.
This commit is contained in:
parent
232839020f
commit
79a522efb3
|
@ -123,10 +123,10 @@ struct uiFontButton {
|
||||||
fm = (NSFontManager *) sender;
|
fm = (NSFontManager *) sender;
|
||||||
old = self->libui_font;
|
old = self->libui_font;
|
||||||
self->libui_font = [sender convertFont:self->libui_font];
|
self->libui_font = [sender convertFont:self->libui_font];
|
||||||
// TODO do we get it back retained?
|
// do this even if it returns the same; we don't own anything that isn't from a new or alloc/init
|
||||||
// TODO is it even retained when we get it, regardless of value?
|
[self->libui_font retain];
|
||||||
if (self->libui_font != old)
|
// do this second just in case
|
||||||
[old release];
|
[old release];
|
||||||
[self updateFontButtonLabel];
|
[self updateFontButtonLabel];
|
||||||
(*(b->onChanged))(b, b->onChangedData);
|
(*(b->onChanged))(b, b->onChangedData);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue