bug-gnustep
[Top][All Lists]
Advanced

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

[bug #39072] Gorm segfaults trying to rename ImageWindow of LaternaMagic


From: Sebastian Reitenbach
Subject: [bug #39072] Gorm segfaults trying to rename ImageWindow of LaternaMagica
Date: Mon, 27 May 2013 08:33:12 +0000
User-agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:18.0) Gecko/20100101 Firefox/18.0

Follow-up Comment #2, bug #39072 (project gnustep):

Thanks Fred,

I tried this:

--- GormCore/GormDocument.m.orig        Mon May 27 09:47:59 2013
+++ GormCore/GormDocument.m     Mon May 27 09:48:58 2013
@@ -2211,7 +2211,9 @@ static void _real_close(GormDocument *self,
       className = [cc objectForKey: oldName];
       if(className != nil)
        {
+         RETAIN(oldName);
          [cc removeObjectForKey: oldName];
+         RELEASE(oldName);
          [cc setObject: className forKey: aName]; 
        }
     }

But it still crashes the same way.

But something else I recognized:
With the NSLog I had there before:
NSLog(@"the OLD name %@ and its class name: %@, and cc: %@", oldName,
className, cc); 

it printed:
2013-05-26 10:49:08.130 Gorm[27147] the OLD name ImageWindow and its class
name: LMWindow, and cc: {ImageView = LMFlipView; ImageWindow = LMWindow; }

The class name is an LMWindow, a custom class. But when you click in the Gorm
main window on the ImageWindow icon, and have the Gorm Inspector open, showing
the "Custom Class" panel, then the class listed there is just an NSWindow. I
don't know if this should have printed LMWindow there? LMWindow is a subclass
of NSWindow.
But it may also have nothing to do with it.
The other windows/panels in LaternaMagica don't seem to be custom classes, and
can be renamed fine.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39072>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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