From f7ee2a03876bf4a5cf66b3a433955e4e55d91362 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Fri, 21 Dec 2012 00:56:50 +0100 Subject: - 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. --- atari/download.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'atari/download.c') 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)); -- cgit v1.2.3