开发者

potential leak? - analyzer

analyze state leak p开发者_开发技巧roblem, why?

+ (DebugOutput *) sharedDebug
    {
      @synchronized(self)
      {
        if (sharedDebugInstance == nil)
        {
          [[self alloc] init];
        }  
      }
      return sharedDebugInstance;
    }


Well sharedDebugInstance is not assigned, you probably wanted to do that:

sharedDebugInstance = [[self alloc] init];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜