Right now with the Qt port, WebCore::CachedResource is being leaked on exit. This happens for every webpage that has a cached resource. But that is ok, because WebCore::Cache itself is *designed* to be leaked on exit as it is a singleton. However, WebCore::CachedResource has a RefCountedLeakMessage that prints on exit. After consulting with Antti it was determined that the best thing the Qt port could do in this instance is match the Mac ports behavior. This patch clears the cache on exit only in Debug builds in the same manner that the Mac port does.
Created attachment 27880 [details] Clean up leak messages
Comment on attachment 27880 [details] Clean up leak messages Looks good. r=me
Landed with r41151.