summaryrefslogtreecommitdiff
path: root/resourceqt-client
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-04-21 16:03:03 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-04-21 16:14:01 +0300
commit3a5be2e8aff1c1bdd6406904307a7b3b7a062d38 (patch)
treec31a83baf98e753675bcdc1f67b739f1bdae5896 /resourceqt-client
parent118f1cc0392785bd0f8b31cbcd624885eebe4fcb (diff)
downloadlibresourceqt-3a5be2e8aff1c1bdd6406904307a7b3b7a062d38.tar.gz
Fixed destructor
Diffstat (limited to 'resourceqt-client')
-rw-r--r--resourceqt-client/client.cpp5
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();