Reviewed by vicki
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Jan 2005 22:57:03 +0000 (22:57 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Jan 2005 22:57:03 +0000 (22:57 +0000)
- fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base

        * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8403 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebImageData.m

index 2d26bc2186d00b3ef7e670a27ccb81dfe7170062..696a523f9ecfc948d17dc3075d66103b70ae5b40 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-19  Darin Adler <darin@apple.com>
+
+        Reviewed by vicki
+
+       - fixed <rdar://problem/3962559> stopAnimationsInView leaks after cvs-base
+        * WebCoreSupport.subproj/WebImageData.m: (+[WebImageData stopAnimationsInView:]): add a release
+
 2005-01-19  Chris Blumenberg  <cblu@apple.com>
 
        Fixed: <rdar://problem/3961809> plug-in code attempts to load empty URL
index f348c08d9f87e56500fe7ac3a9b5665e942e589d..beb2805f48f97c23cae482fe31c4873529eb0d63 100644 (file)
@@ -686,14 +686,15 @@ static NSMutableSet *activeAnimations;
     while ((animation = [objectEnumerator nextObject])) {
        NSSet *renderersInView = (NSSet *)CFDictionaryGetValue (animation->animatingRenderers, aView);
         if (renderersInView) {
-           if (!renderersToStop)
-               renderersToStop = [[NSMutableSet alloc] init];
+                       if (!renderersToStop)
+                               renderersToStop = [[NSMutableSet alloc] init];
             [renderersToStop unionSet:renderersInView];
         }
     }
 
     // Now tell them all to stop drawing.
     [renderersToStop makeObjectsPerformSelector:@selector(stopAnimation)];
+       [renderersToStop release];
 }
 
 - (void)addAnimatingRenderer:(WebImageRenderer *)r inView:(NSView *)view