Changeset View
Changeset View
Standalone View
Standalone View
phplanguagesupport.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | |||||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | LanguageSupport::~LanguageSupport() | 81 | LanguageSupport::~LanguageSupport() | ||
82 | { | 82 | { | ||
83 | parseLock()->lockForWrite(); | 83 | parseLock()->lockForWrite(); | ||
84 | //By locking the parse-mutexes, we make sure that parse- and preprocess-jobs | 84 | //By locking the parse-mutexes, we make sure that parse- and preprocess-jobs | ||
85 | //get a chance to finish in a good state | 85 | //get a chance to finish in a good state | ||
86 | parseLock()->unlock(); | 86 | parseLock()->unlock(); | ||
87 | delete m_highlighting; | ||||
88 | delete m_refactoring; | ||||
87 | } | 89 | } | ||
88 | 90 | | |||
89 | KDevelop::ParseJob *LanguageSupport::createParseJob(const IndexedString &url) | 91 | KDevelop::ParseJob *LanguageSupport::createParseJob(const IndexedString &url) | ||
90 | { | 92 | { | ||
91 | return new ParseJob(url, this); | 93 | return new ParseJob(url, this); | ||
92 | } | 94 | } | ||
93 | 95 | | |||
94 | QString LanguageSupport::name() const | 96 | QString LanguageSupport::name() const | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |