summaryrefslogtreecommitdiff
path: root/packages/gtk-webcore/files/setHandle_segfault-fix.patch
blob: 9ebdfeebe5e625f36112889205d2b495eec3dfa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- NRCore/kwiq/KWQResourceLoader.cpp.orig	2006-01-21 00:13:32.000000000 +0200
+++ NRCore/kwiq/KWQResourceLoader.cpp	2006-01-20 23:52:59.000000000 +0200
@@ -56,8 +56,11 @@
 void KWQResourceLoader::setHandle(WebCoreResourceHandle* handle)
 {
     ASSERT(!_handle);
-    handle->retain();
-    _handle = handle;
+    if (handle)
+	{
+    	 handle->retain();
+    	 _handle = handle;
+	}
 }
 
 void KWQResourceLoader::receivedResponse(KWIQResponse* response)