------------------------------------------------------------
revno: 15
committer: poy <[email protected]>
branch nick: DevPlugin
timestamp: Wed 2013-01-30 16:27:17 +0100
message:
fix a crash when removing the plugin
modified:
src/GUI.cpp
--
lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/DevPlugin
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/DevPlugin
Your team Dcplusplus-team is subscribed to branch
lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/DevPlugin.
To unsubscribe from this branch go to
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/DevPlugin/+edit-subscription
=== modified file 'src/GUI.cpp'
--- src/GUI.cpp 2013-01-29 18:42:08 +0000
+++ src/GUI.cpp 2013-01-30 15:27:17 +0000
@@ -67,6 +67,11 @@
}
GUI::~GUI() {
+ if(window) {
+ ::DestroyWindow(window->handle());
+ window = nullptr;
+ Application::uninit();
+ }
}
void GUI::create() {
_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help : https://help.launchpad.net/ListHelp