karstengresch / simbl

Automatically exported from code.google.com/p/simbl
0 stars 0 forks source link

Memory Leaks #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

there's a memory leak - try running Instruments on any app that will load a 
SIMBL plugin - you get 
memory leaks from SIMBL. The problem is that the SIMBLPlugin class doesn't have 
a -dealloc method 
releasing the path and info objects.

Here's a backtrace in one of my apps:

  34 VideoApp 0x1
  33 VideoApp start
  32 VideoApp main /Users/alto/Cocoa Development/VideoApp/main.m:14
  31 AppKit NSApplicationMain
  30 AppKit -[NSApplication run]
  29 AppKit -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
  28 AppKit _DPSNextEvent
  27 HIToolbox AEProcessAppleEvent
  26 AE aeProcessAppleEvent
  25 AE dispatchEventAndSendReply(AEDesc const*, AEDesc*)
  24 AE aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
  23 OpenScripting EventHandlerThunk(AEDesc const*, AEDesc*, long)
  22 SIMBL InjectEventHandler
  21 SIMBL +[SIMBL installPlugins]
  20 SIMBL +[SIMBL loadBundleAtPath:]
  19 SIMBL +[SIMBL shouldLoadBundleAtPath:]
  18 SIMBL +[SIMBL shouldApplication:loadBundleAtPath:]
  17 SIMBL +[SIMBLPlugin bundleWithPath:]
  16 SIMBL -[SIMBLPlugin initWithPath:]
  15 Foundation +[NSDictionary(NSDictionary) dictionaryWithContentsOfFile:]
  14 CoreFoundation -[__NSPlaceholderDictionary initWithContentsOfFile:]
  13 Foundation +[NSDictionary(NSDictionary) newWithContentsOf:immutable:]
  12 Foundation _NSParseObjectFromASCIIPropertyListOrSerialization
  11 CoreFoundation CFPropertyListCreateFromXMLData
  10 CoreFoundation CFPropertyListCreateWithData
   9 CoreFoundation _CFPropertyListCreateWithData
   8 CoreFoundation _CFPropertyListCreateFromXMLStringError
   7 CoreFoundation parseXMLElement
   6 CoreFoundation parsePListTag
   5 CoreFoundation parseXMLElement
   4 CoreFoundation parseXMLElement
   3 CoreFoundation parseArrayTag
   2 CoreFoundation CFArrayAppendValue
   1 CoreFoundation _CFArrayReplaceValues
   0 libSystem.B.dylib malloc_zone_malloc

Cheers,

Charlie

Original issue reported on code.google.com by untitled...@gmail.com on 3 Feb 2010 at 9:50