summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2007-06-24 18:00:46 +0000
committerAdrian Lees <adrian@aemulor.com>2007-06-24 18:00:46 +0000
commit1a677937844ad99c49ffd2fe7e996083dcaed9f7 (patch)
treec467151836b0b8cccfc6d0d75dcf8437df9996ee
parent9e2baee37da457c34da61fab3d9a93ce98da5654 (diff)
downloadnetsurf-1a677937844ad99c49ffd2fe7e996083dcaed9f7.tar.gz
netsurf-1a677937844ad99c49ffd2fe7e996083dcaed9f7.tar.bz2
Fix crash if content failed to open (memory shortage)
svn path=/trunk/netsurf/; revision=3365
-rw-r--r--riscos/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 2d9e8da58..c47d02c49 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -1944,7 +1944,7 @@ void ro_gui_window_close(wimp_w w) {
if (g->bw)
content = g->bw->current_content;
if (pointer.buttons & wimp_CLICK_ADJUST) {
- filename = url_to_path(content->url);
+ filename = (content && content->url) ? url_to_path(content->url) : NULL;
if (filename) {
temp_name = malloc(strlen(filename) + 32);
if (temp_name) {