avoid memory leaks in case no request handler found

This commit is contained in:
Raymond Hill 2014-11-18 11:35:42 -02:00
parent f090144d09
commit 578735dd58
1 changed files with 5 additions and 0 deletions

View File

@ -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();
};
/******************************************************************************/