summaryrefslogtreecommitdiff
path: root/windows/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows/main.c')
-rw-r--r--windows/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/windows/main.c b/windows/main.c
index 7ad3d8550..637aa217f 100644
--- a/windows/main.c
+++ b/windows/main.c
@@ -44,14 +44,9 @@ char *options_file_location;
static nsurl *gui_get_resource_url(const char *path)
{
char buf[PATH_MAX];
- char *raw;
nsurl *url = NULL;
- raw = path_to_url(filepath_sfind(respaths, buf, path));
- if (raw != NULL) {
- nsurl_create(raw, &url);
- free(raw);
- }
+ netsurf_path_to_nsurl(filepath_sfind(respaths, buf, path), &url);
return url;
}