From 3a5be2e8aff1c1bdd6406904307a7b3b7a062d38 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Wed, 21 Apr 2010 16:03:03 +0300 Subject: Fixed destructor --- resourceqt-client/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'resourceqt-client') 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(); -- cgit v1.2.3