From ca712957b8b8d53e7853b9e489e27d3e53b9acb3 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 4 Feb 2021 23:00:27 +0000 Subject: [PATCH] WebView: move http.free() at the end git-svn-id: svn://kolibrios.org@8574 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/WebView.c | 2 +- programs/cmm/browser/const.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cmm/browser/WebView.c b/programs/cmm/browser/WebView.c index d1bd48eee2..135bbb0966 100644 --- a/programs/cmm/browser/WebView.c +++ b/programs/cmm/browser/WebView.c @@ -231,7 +231,6 @@ void main() } else { // Loading the page is complete, free resources redirect_count = 0; - http.hfree(); if (http_get_type==PAGE) { history.add(http.cur_url); if (!strchr(http.cur_url, '?')) { @@ -250,6 +249,7 @@ void main() free(http.content_pointer); GetImg(false); } + http.hfree(); } break; default: diff --git a/programs/cmm/browser/const.h b/programs/cmm/browser/const.h index 21d2364acc..18413cbffc 100644 --- a/programs/cmm/browser/const.h +++ b/programs/cmm/browser/const.h @@ -107,4 +107,4 @@ char editbox_icons[] = FROM "res/editbox_icons.raw"; #define DEFAULT_URL URL_SERVICE_HOMEPAGE -char version[]="WebView 3.31a"; \ No newline at end of file +char version[]="WebView 3.31b"; \ No newline at end of file