Bug 638549 - fix leak of WebGL about:memory reporters - r=jrmuizel

See bug 638549 comment 25. We had to ref-count these pointers.
This commit is contained in:
Benoit Jacob 2011-08-10 18:25:23 -04:00
Родитель e343a8afa2
Коммит ed1b42f47f
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -2183,17 +2183,17 @@ class WebGLMemoryReporter
typedef nsTArray<const WebGLContext*> ContextsArrayType;
ContextsArrayType mContexts;
nsIMemoryReporter *mTextureMemoryUsageReporter;
nsIMemoryReporter *mTextureCountReporter;
nsIMemoryReporter *mBufferMemoryUsageReporter;
nsIMemoryReporter *mBufferCacheMemoryUsageReporter;
nsIMemoryReporter *mBufferCountReporter;
nsIMemoryReporter *mRenderbufferMemoryUsageReporter;
nsIMemoryReporter *mRenderbufferCountReporter;
nsIMemoryReporter *mShaderSourcesSizeReporter;
nsIMemoryReporter *mShaderTranslationLogsSizeReporter;
nsIMemoryReporter *mShaderCountReporter;
nsIMemoryReporter *mContextCountReporter;
nsCOMPtr<nsIMemoryReporter> mTextureMemoryUsageReporter;
nsCOMPtr<nsIMemoryReporter> mTextureCountReporter;
nsCOMPtr<nsIMemoryReporter> mBufferMemoryUsageReporter;
nsCOMPtr<nsIMemoryReporter> mBufferCacheMemoryUsageReporter;
nsCOMPtr<nsIMemoryReporter> mBufferCountReporter;
nsCOMPtr<nsIMemoryReporter> mRenderbufferMemoryUsageReporter;
nsCOMPtr<nsIMemoryReporter> mRenderbufferCountReporter;
nsCOMPtr<nsIMemoryReporter> mShaderSourcesSizeReporter;
nsCOMPtr<nsIMemoryReporter> mShaderTranslationLogsSizeReporter;
nsCOMPtr<nsIMemoryReporter> mShaderCountReporter;
nsCOMPtr<nsIMemoryReporter> mContextCountReporter;
static WebGLMemoryReporter* UniqueInstance();