summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kompare/kompare_shell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kompare/kompare_shell.cpp b/kompare/kompare_shell.cpp
index 2236b0a6..66c951c0 100644
--- a/kompare/kompare_shell.cpp
+++ b/kompare/kompare_shell.cpp
@@ -181,6 +181,7 @@ KompareShell::KompareShell()
KompareShell::~KompareShell()
{
+ kapp->deref();
}
bool KompareShell::queryClose()
@@ -425,7 +426,6 @@ void KompareShell::slotFileClose()
if ( m_viewPart->queryClose() )
{
delete this;
- kapp->deref();
}
}