← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcpp-plugin-sdk-cpp/DevPlugin] Rev 15: fix a crash when removing the plugin

 

------------------------------------------------------------
revno: 15
committer: poy <poy@xxxxxxxxxx>
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() {