Browse Source

avoid memory leaks in case no request handler found

pull/2/head
Raymond Hill 10 years ago
committed by gorhill
parent
commit
eb22ee51b3
  1. 5
      meta/crx/vapi-background.js

5
meta/crx/vapi-background.js

@ -260,6 +260,11 @@ vAPI.messaging.onPortMessage = function(request, port) {
} }
console.error('µBlock> messaging > unknown request: %o', request); 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…
Cancel
Save