WebView 3.32: fix images load

git-svn-id: svn://kolibrios.org@8698 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-04-27 20:32:18 +00:00
parent b930c6f5f7
commit 819b3e8259
4 changed files with 6 additions and 4 deletions

View File

@ -238,7 +238,6 @@ void main()
} }
LoadInternalPage(http.content_pointer, http.content_received); LoadInternalPage(http.content_pointer, http.content_received);
free(http.content_pointer); free(http.content_pointer);
http.hfree();
} }
else if (http_get_type==IMG) { else if (http_get_type==IMG) {
_IMG_RES: _IMG_RES:
@ -247,8 +246,8 @@ void main()
} else { } else {
cache.add(cur_img_url, 0, 0, IMG, NULL); cache.add(cur_img_url, 0, 0, IMG, NULL);
} }
free(http.content_pointer);
http.hfree(); http.hfree();
free(http.content_pointer);
GetImg(false); GetImg(false);
} }
} }
@ -726,6 +725,7 @@ void LoadInternalPage(dword _bufdata, _in_bufsize){
} else { } else {
WB1.DrawPage(); WB1.DrawPage();
} }
http.hfree();
if (WB1.img_url.count) { GetImg(true); DrawOmnibox(); } if (WB1.img_url.count) { GetImg(true); DrawOmnibox(); }
} }
} }

View File

@ -107,4 +107,4 @@ char editbox_icons[] = FROM "res/editbox_icons.raw";
#define DEFAULT_URL URL_SERVICE_HOMEPAGE #define DEFAULT_URL URL_SERVICE_HOMEPAGE
char version[]="WebView 3.31b"; char version[]="WebView 3.32";

View File

@ -8,6 +8,5 @@ tup.rule("collections.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("K
tup.rule("menu.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "menu.com") tup.rule("menu.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "menu.com")
tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "rgb.com") tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "rgb.com")
tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com") tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com")
tup.rule("info.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "info.com")
tup.rule("pigex.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pigex.com") tup.rule("pigex.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pigex.com")
tup.rule("math.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "math.com") tup.rule("math.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "math.com")

View File

@ -115,6 +115,7 @@ bool _http::stop()
{ {
if (transfer) if (transfer)
{ {
/*
EAX = transfer; EAX = transfer;
EAX = EAX.http_msg.content_ptr; // get pointer to data EAX = EAX.http_msg.content_ptr; // get pointer to data
$push EAX // save it on the stack $push EAX // save it on the stack
@ -122,6 +123,8 @@ bool _http::stop()
$pop EAX $pop EAX
free(EAX); // free data free(EAX); // free data
transfer=0; transfer=0;
*/
hfree();
return true; return true;
} }
return false; return false;