Summary: | Pulse Extension doesn't remove menu entry when unloaded | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | D. V. Wiebe <dvw> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
D. V. Wiebe
2005-12-19 01:00:33 UTC
The same behaviour is seen with the two entries in the Tools menu ("Show Javascript Console" and "Clear Javascript Interpreter") created by the Javascript Extension. The ELOG Extension appears to clean itself up properly. SVN commit 489553 by staikos: properly unload extensions, since the crash is now fixed BUG: 118608 M +4 -2 js/js.cpp M +4 -0 pulse/pulse.cpp --- trunk/extragear/graphics/kst/kst/extensions/js/js.cpp #489552:489553 @@ -138,8 +138,10 @@ delete _iface; _iface = 0L; destroyRegistry(); - // crash - //app()->guiFactory()->removeClient(this); + KstApp *app = this->app(); + if (app && app->guiFactory()) { + app->guiFactory()->removeClient(this); + } } --- trunk/extragear/graphics/kst/kst/extensions/pulse/pulse.cpp #489552:489553 @@ -51,6 +51,10 @@ for (KstGVectorList::Iterator i = gvl.begin(); i != gvl.end(); ++i) { (*i)->setFrequency(0); } + KstApp *app = this->app(); + if (app && app->guiFactory()) { + app->guiFactory()->removeClient(this); + } } |