mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
avoid memory leaks in case no request handler found
This commit is contained in:
parent
2310d01835
commit
eb22ee51b3
1 changed files with 5 additions and 0 deletions
|
@ -260,6 +260,11 @@ vAPI.messaging.onPortMessage = function(request, port) {
|
|||
}
|
||||
|
||||
console.error('µBlock> messaging > unknown request: %o', request);
|
||||
|
||||
// Unhandled:
|
||||
// Need to callback anyways in case caller expected an answer, or
|
||||
// else there is a memory leak on caller's side
|
||||
callback();
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue