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:
Stephan Aßmus
2011-03-08 21:47:57 +00:00
parent 663738e98e
commit 1d1031cf27
+2 -1
View File
@@ -244,7 +244,8 @@ ServerFont::SetStyle(FontStyle* style)
{
if (style && style != fStyle) {
// detach from old style
fStyle->Release();
if (fStyle != NULL)
fStyle->Release();
// attach to new style
fStyle = style;