Author: rmottola
Date: Fri Dec  4 16:18:08 2015
New Revision: 39220

URL: http://svn.gna.org/viewcvs/gnustep?rev=39220&view=rev
Log:
threaded methods need local ARP

Modified:
    apps/gworkspace/trunk/GWorkspace/Thumbnailer/GWThumbnailer.m

Modified: apps/gworkspace/trunk/GWorkspace/Thumbnailer/GWThumbnailer.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/GWorkspace/Thumbnailer/GWThumbnailer.m?rev=39220&r1=39219&r2=39220&view=diff
==============================================================================
--- apps/gworkspace/trunk/GWorkspace/Thumbnailer/GWThumbnailer.m        
(original)
+++ apps/gworkspace/trunk/GWorkspace/Thumbnailer/GWThumbnailer.m        Fri Dec 
 4 16:18:08 2015
@@ -311,8 +311,9 @@
   NSMutableArray *added;
   BOOL isdir;
   NSUInteger i;
-
-
+  NSAutoreleasePool *arp;
+
+  arp = [NSAutoreleasePool new];
   NSLog(@"_makeThumbnails (%u): %@", (int)countInstances, path);
   added = [NSMutableArray array];
 
@@ -358,6 +359,7 @@
        userInfo: info];
     }
   [pathsInProcessing removeObject:path];
+  [arp drain];
 }
 
 - (void)makeThumbnails:(NSString *)path
@@ -373,6 +375,9 @@
   NSMutableArray *deleted;
   BOOL isdir;
   NSUInteger i;
+  NSAutoreleasePool *arp;
+
+  arp = [NSAutoreleasePool new];
 
   
     if ((thumbsDict == nil) || ([thumbsDict count] == 0)) {
@@ -417,6 +422,7 @@
       }
 
   [pathsInProcessing removeObject:path];
+  [arp drain];
 }
 
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to