diff options
Diffstat (limited to 'gtk')
| -rw-r--r-- | gtk/PlatGTK.cxx | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 8e225d0a5..1227452b8 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -301,11 +301,9 @@ FontID FontCached::FindOrCreate(const FontParameters &fp) {  	}  	if (ret == 0) {  		FontCached *fc = new FontCached(fp); -		if (fc) { -			fc->next = first; -			first = fc; -			ret = fc->fid; -		} +		fc->next = first; +		first = fc; +		ret = fc->fid;  	}  	FontMutexUnlock();  	return ret; | 
