Commit 702d2ed0 authored by Samikshan Bairagya's avatar Samikshan Bairagya

Fixed memleaks.

parent b806d7c3
......@@ -48,13 +48,15 @@ WIView::WIView ( QObject *parent, ObsConditions *obs) : QObject(parent)
baseView->show();
}
WIView::~WIView() {}
WIView::~WIView()
{
delete m;
}
void WIView::onCatListItemClicked(QString category)
{
if (category == "Planetary Objects")
{
kDebug()<<"Planetary Objects";
ctxt->setContextProperty("catListModel", QVariant::fromValue(m->returnCatListModel( ModelManager::PlanetaryObjects )));
soTypeTextObj->setProperty("text", category);
soTypeTextObj->setProperty("visible", true);
......
......@@ -39,7 +39,15 @@ ModelManager::ModelManager(ObsConditions *obs)
updateModels();
}
ModelManager::~ModelManager() {}
ModelManager::~ModelManager()
{
delete planetsModel;
delete starsModel;
delete galModel;
delete conModel;
delete starClustModel;
delete nebModel;
}
void ModelManager::updateModels()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment