Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix memory leak by removing image onload listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Johnston committed Apr 6, 2010
1 parent 6c0aed1 commit 808847e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PIE.htc
Expand Up @@ -77,6 +77,7 @@
img.onload = function() {
size = sizes[ src ] = { w: img.width, h: img.height };
func.call( ctx, size );
img.onload = null;
};
img.src = src;
}
Expand Down

0 comments on commit 808847e

Please sign in to comment.