mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Search web: Ensure hlcache callbacks handle errorcode.
This commit is contained in:
parent
c0205478c0
commit
b35b3c1364
@ -296,6 +296,7 @@ search_web_ico_callback(hlcache_handle *ico,
|
|||||||
|
|
||||||
case CONTENT_MSG_ERROR:
|
case CONTENT_MSG_ERROR:
|
||||||
LOG("icon %s error: %s", nsurl_access(hlcache_handle_get_url(ico)), event->data.error);
|
LOG("icon %s error: %s", nsurl_access(hlcache_handle_get_url(ico)), event->data.error);
|
||||||
|
case CONTENT_MSG_ERRORCODE:
|
||||||
hlcache_handle_release(ico);
|
hlcache_handle_release(ico);
|
||||||
/* clear reference to released handle */
|
/* clear reference to released handle */
|
||||||
provider->ico_handle = NULL;
|
provider->ico_handle = NULL;
|
||||||
@ -450,6 +451,7 @@ default_ico_callback(hlcache_handle *ico,
|
|||||||
|
|
||||||
case CONTENT_MSG_ERROR:
|
case CONTENT_MSG_ERROR:
|
||||||
LOG("icon %s error: %s", nsurl_access(hlcache_handle_get_url(ico)), event->data.error);
|
LOG("icon %s error: %s", nsurl_access(hlcache_handle_get_url(ico)), event->data.error);
|
||||||
|
case CONTENT_MSG_ERRORCODE:
|
||||||
hlcache_handle_release(ico);
|
hlcache_handle_release(ico);
|
||||||
/* clear reference to released handle */
|
/* clear reference to released handle */
|
||||||
ctx->default_ico_handle = NULL;
|
ctx->default_ico_handle = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user