summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-dd
blob: ca16f1c9e10a5bb00ba59037be9b1424b1573638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-dd,v 1.2 2005/05/01 04:35:40 markd Exp $

--- kimgio/tiffr.cpp.orig	2004-11-22 16:52:18.000000000 +1300
+++ kimgio/tiffr.cpp
@@ -84,6 +84,10 @@ KDE_EXPORT void kimgio_tiff_read( QImage
             return;
 
 	QImage image( width, height, 32 );
+	if( image.isNull()) {
+		TIFFClose( tiff );
+		return;
+	}
 	data = (uint32 *)image.bits();
 
 	//Sven: changed to %ld for 64bit machines