gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage _clearFileTypeCaches


From: Fred Kiefer
Subject: Re: NSImage _clearFileTypeCaches
Date: Wed, 11 Jan 2012 09:15:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

Thank you for spotting this. I just submitted your change.

Fred

On 10.01.2012 21:49, Philippe Roussel wrote:
Hi,

Isn't the following patch needed for the code in +imageFileTypes and
friends to rebuild the arrays when needed ? Those methods compare the
arrays' pointers with nil and I think RELEASE doesn't affect nil to its
argument.

Index: Source/NSImage.m
===================================================================
--- Source/NSImage.m    (révision 34482)
+++ Source/NSImage.m    (copie de travail)
@@ -1812,10 +1812,10 @@

  + (void) _clearFileTypeCaches: (NSNotification*)notif
  {
-  RELEASE(imageUnfilteredFileTypes);
-  RELEASE(imageFileTypes);
-  RELEASE(imageUnfilteredPasteboardTypes);
-  RELEASE(imagePasteboardTypes);
+  DESTROY(imageUnfilteredFileTypes);
+  DESTROY(imageFileTypes);
+  DESTROY(imageUnfilteredPasteboardTypes);
+  DESTROY(imagePasteboardTypes);
  }

  + (void) _themeDidActivate: (NSNotification *)notif

Philippe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]