From 1ab92f1d2b346de7da8ca5c3aaa6bc75b43981e7 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 19 Jan 2007 01:12:38 +0000 Subject: Every single file in this commit had a memory leak where a resource is allocated in the constructor but not de-allocated in the destructor. This commit fixes that. --- (limited to 'noncore/apps/tinykate/libkate/document/katehighlight.h') diff --git a/noncore/apps/tinykate/libkate/document/katehighlight.h b/noncore/apps/tinykate/libkate/document/katehighlight.h index fddf585..f0be27b 100644 --- a/noncore/apps/tinykate/libkate/document/katehighlight.h +++ b/noncore/apps/tinykate/libkate/document/katehighlight.h @@ -184,7 +184,7 @@ class HlAnyChar : public HlItem { class HlRegExpr : public HlItem { public: HlRegExpr(int attribute, int context,QString expr); - ~HlRegExpr(){delete Expr;}; + ~HlRegExpr(); virtual const QChar *checkHgl(const QChar *, int len, bool); QRegExp3 *Expr; bool handlesLinestart; -- cgit v0.9.0.2