From 1684cc46b3bc9cd9a337bd220d0da4bd77ef292a Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Fri, 20 Jan 2006 23:12:20 +0000 Subject: osb-nrcore_20050430 : add patch to fix library segfault --- packages/gtk-webcore/files/setHandle_segfault-fix.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/gtk-webcore/files/setHandle_segfault-fix.patch (limited to 'packages') diff --git a/packages/gtk-webcore/files/setHandle_segfault-fix.patch b/packages/gtk-webcore/files/setHandle_segfault-fix.patch new file mode 100644 index 0000000000..9ebdfeebe5 --- /dev/null +++ b/packages/gtk-webcore/files/setHandle_segfault-fix.patch @@ -0,0 +1,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) -- cgit v1.2.3