diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-04-21 16:03:03 +0300 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-04-21 16:14:01 +0300 |
commit | 3a5be2e8aff1c1bdd6406904307a7b3b7a062d38 (patch) | |
tree | c31a83baf98e753675bcdc1f67b739f1bdae5896 /resourceqt-client | |
parent | 118f1cc0392785bd0f8b31cbcd624885eebe4fcb (diff) |
Fixed destructor
Diffstat (limited to 'resourceqt-client')
-rw-r--r-- | resourceqt-client/client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/resourceqt-client/client.cpp b/resourceqt-client/client.cpp index e0adbd0..c7e97f6 100644 --- a/resourceqt-client/client.cpp +++ b/resourceqt-client/client.cpp @@ -367,6 +367,7 @@ void Client::timerEvent(QTimerEvent*) printf("Available commands:\n"); printf("\t help \tprint this help message\n"); printf("\t quit \texit application\n"); + printf("\t free \tdestroy and free the resources\n"); printf("\t acquire\tacquire required resources\n"); printf("\t release\trelease resources\n"); printf("\t update\tupdate modified resource set after add or remove command\n"); @@ -513,6 +514,10 @@ void Client::timerEvent(QTimerEvent*) } } } + else if (params[0] == "free") { + delete resourceSet; + resourceSet = new ResourceSet(applicationClass); + } else if (!params[0].isEmpty()) { QByteArray ba = line.toLatin1(); const char *c_line = ba.data(); |