Commit 867aae0b authored by Michael Reeves's avatar Michael Reeves

Fix pntential memmory leak use static variable for instance.

parent 307fe81c
......@@ -170,7 +170,7 @@ void KDiff3Shell::applyNewToolbarConfig()
void KDiff3Shell::slotNewInstance(const QString& fn1, const QString& fn2, const QString& fn3)
{
KDiff3Shell* pKDiff3Shell = new KDiff3Shell(false);
static KDiff3Shell* pKDiff3Shell = new KDiff3Shell(false);
((KDiff3App*)pKDiff3Shell->m_part->widget())->completeInit(fn1, fn2, fn3);
}
......
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