[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : gerry
Repository : xara
Revision   : 1404
Date       : Tue Jul  4 20:57:02 BST 2006

Changed paths:
   M /Trunk/XaraLX/Kernel/statline.cpp

Fixed memory leak


Diff:
Index: Trunk/XaraLX/Kernel/statline.cpp
===================================================================
--- Trunk/XaraLX/Kernel/statline.cpp	(revision 1403)
+++ Trunk/XaraLX/Kernel/statline.cpp	(revision 1404)
@@ -239,11 +239,18 @@
 
 StatusLine::~StatusLine()
 {
-	if (pSnappedCursor!=NULL)
+	if (pSnappedCursor != NULL)
 	{
 		delete pSnappedCursor;
-		pSnappedCursor=NULL;
+		pSnappedCursor = NULL;
 	}
+
+	if (JobDescription != NULL)
+	{
+		delete JobDescription;
+		JobDescription = NULL;
+	}
+
 	if (this == s_pStatusLine)
 	{
 		// Only zap it out if there is a live status line. Status line objects


Xara