summaryrefslogtreecommitdiff
path: root/atari/download.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-12-21 00:56:50 +0100
committerOle Loots <ole@monochrom.net>2012-12-21 00:56:50 +0100
commitf7ee2a03876bf4a5cf66b3a433955e4e55d91362 (patch)
tree146748923e9aaa464fac29306cc51cb06ef589ec /atari/download.c
parent3019368c93600a335445c09178c9554074c7f656 (diff)
downloadnetsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.gz
netsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.bz2
- started to work on settings dialog
- some WIP in treeview widgets. Changed destroy / and init handling. It requires some optimization, when the widget is closed it must remove itself from the guiwin list, for perfomance.
Diffstat (limited to 'atari/download.c')
-rwxr-xr-xatari/download.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/atari/download.c b/atari/download.c
index e35f31d9e..bf3105f5b 100755
--- a/atari/download.c
+++ b/atari/download.c
@@ -204,9 +204,10 @@ static void gui_download_window_destroy( struct gui_download_window * gdw)
}
if (gdw->fbuf != NULL) {
free( gdw->fbuf );
- }
- wind_close(gdw->aes_handle);
- guiwin_remove(gdw->guiwin);
+ }
+ guiwin_remove(gdw->guiwin);
+ wind_close(gdw->aes_handle);
+ wind_delete(gdw->aes_handle);
free(gdw);
}
@@ -269,7 +270,7 @@ struct gui_download_window * gui_download_window_create(download_context *ctx,
gemdos_realpath(nsoption_charp(downloads_path), gdos_path);
dstsize = strlen(gdos_path) + strlen(filename) + 2;
destination = malloc( dstsize );
- snprintf( destination, dstsize, "%s/%s", gdos_path, filename );
+ snprintf(destination, dstsize, "%s/%s", gdos_path, filename);
}
gdw = calloc(1, sizeof(struct gui_download_window));