mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 22:09:43 +03:00
Fix crash if content failed to open (memory shortage)
svn path=/trunk/netsurf/; revision=3365
This commit is contained in:
parent
9e2baee37d
commit
1a67793784
@ -1944,7 +1944,7 @@ void ro_gui_window_close(wimp_w w) {
|
|||||||
if (g->bw)
|
if (g->bw)
|
||||||
content = g->bw->current_content;
|
content = g->bw->current_content;
|
||||||
if (pointer.buttons & wimp_CLICK_ADJUST) {
|
if (pointer.buttons & wimp_CLICK_ADJUST) {
|
||||||
filename = url_to_path(content->url);
|
filename = (content && content->url) ? url_to_path(content->url) : NULL;
|
||||||
if (filename) {
|
if (filename) {
|
||||||
temp_name = malloc(strlen(filename) + 32);
|
temp_name = malloc(strlen(filename) + 32);
|
||||||
if (temp_name) {
|
if (temp_name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user