It is unclear what is supposed to be stored in ve.init.platform.imageInfoCache.
MWMediaDialog (in ve.ui.MWMediaDialog.prototype.confirmSelectedImage) is stuffing oodles of probably completely useless image metadata there (when calling ve.init.platform.imageInfoCache.set( obj )), especially after uploading an image from the dialog. This probably leaks some memory.