{"action":"created","issue":{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/54","labels_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/54/comments","events_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/54/events","html_url":"https://github.com/yuantiku/YTKNetwork/issues/54","id":59776522,"number":54,"title":"快速重复创建并取消请求，会导致报double free错误，然后崩溃","user":{"login":"Wingzki","id":3872832,"avatar_url":"https://avatars.githubusercontent.com/u/3872832?v=3","gravatar_id":"","url":"https://api.github.com/users/Wingzki","html_url":"https://github.com/Wingzki","followers_url":"https://api.github.com/users/Wingzki/followers","following_url":"https://api.github.com/users/Wingzki/following{/other_user}","gists_url":"https://api.github.com/users/Wingzki/gists{/gist_id}","starred_url":"https://api.github.com/users/Wingzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wingzki/subscriptions","organizations_url":"https://api.github.com/users/Wingzki/orgs","repos_url":"https://api.github.com/users/Wingzki/repos","events_url":"https://api.github.com/users/Wingzki/events{/privacy}","received_events_url":"https://api.github.com/users/Wingzki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T10:16:17Z","updated_at":"2015-12-25T08:50:32Z","closed_at":"2015-06-19T10:19:20Z","body":"连续快速调用如下方法会导致程序崩溃。调用次数不确定，有时候四五次，有时候更多的时候崩溃。\r\n\r\n- (void)getAutoComplateWithKeyWord:(NSString *)keyWord {\r\n    \r\n    if (self.autoComplateRequest.isExecuting) {\r\n        [self.autoComplateRequest stop];\r\n    }\r\n    \r\n    self.autoComplateRequest = [[QYAutoComplateRequest alloc] initWithKeyWord:keyWord];\r\n    self.autoComplateRequest.isShowToast = NO;\r\n    \r\n    [self.autoComplateRequest startWithSuccess:^(id results, QYRequest *request) {\r\n        \r\n        if (request != self.autoComplateRequest) {\r\n            return;\r\n        }\r\n        \r\n        if (!self.isSearching) {\r\n            \r\n            if ([results isKindOfClass:[NSDictionary class]]) {\r\n                \r\n                self.searchKeyWords = results[@\"entry\"];\r\n                \r\n            }\r\n            \r\n        }\r\n        \r\n    } failure:^(QYRequestType type, QYRequest *request) {\r\n        \r\n    }];\r\n    \r\n}"},"comment":{"url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/comments/167211219","html_url":"https://github.com/yuantiku/YTKNetwork/issues/54#issuecomment-167211219","issue_url":"https://api.github.com/repos/yuantiku/YTKNetwork/issues/54","id":167211219,"user":{"login":"veecci","id":4248222,"avatar_url":"https://avatars.githubusercontent.com/u/4248222?v=3","gravatar_id":"","url":"https://api.github.com/users/veecci","html_url":"https://github.com/veecci","followers_url":"https://api.github.com/users/veecci/followers","following_url":"https://api.github.com/users/veecci/following{/other_user}","gists_url":"https://api.github.com/users/veecci/gists{/gist_id}","starred_url":"https://api.github.com/users/veecci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veecci/subscriptions","organizations_url":"https://api.github.com/users/veecci/orgs","repos_url":"https://api.github.com/users/veecci/repos","events_url":"https://api.github.com/users/veecci/events{/privacy}","received_events_url":"https://api.github.com/users/veecci/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T08:50:32Z","updated_at":"2015-12-25T08:50:32Z","body":"不要使用isExecuting来判断request的状态，会导致线程安全问题"}}