Duh, of course fStyle can be NULL in SetStyle(), which is for example
called from the constructors... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -244,7 +244,8 @@ ServerFont::SetStyle(FontStyle* style)
|
|||||||
{
|
{
|
||||||
if (style && style != fStyle) {
|
if (style && style != fStyle) {
|
||||||
// detach from old style
|
// detach from old style
|
||||||
fStyle->Release();
|
if (fStyle != NULL)
|
||||||
|
fStyle->Release();
|
||||||
|
|
||||||
// attach to new style
|
// attach to new style
|
||||||
fStyle = style;
|
fStyle = style;
|
||||||
|
|||||||
Reference in New Issue
Block a user