summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authordas <das>2008-12-07 16:32:44 (GMT)
committerdas <das>2008-12-07 16:32:44 (GMT)
commit59bd7a0159445f73e970d56b2751c7b9a1924eca (patch)
tree7eda97e07ed4eb900f578600a3d589a38922e80d /generic/tkText.c
parent13db31e8a25cac1df37497fff167d1ea831b14ad (diff)
downloadtk-59bd7a0159445f73e970d56b2751c7b9a1924eca.zip
tk-59bd7a0159445f73e970d56b2751c7b9a1924eca.tar.gz
tk-59bd7a0159445f73e970d56b2751c7b9a1924eca.tar.bz2
Fix leaks flagged by clang static analyzer
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index c04dae0..b051e9d 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.c,v 1.86 2008/12/06 10:48:29 dkf Exp $
+ * RCS: @(#) $Id: tkText.c,v 1.87 2008/12/07 16:32:44 das Exp $
*/
#include "default.h"
@@ -2664,7 +2664,7 @@ TextPushUndoAction(
Tcl_Obj *seeInsertObj = Tcl_NewObj();
Tcl_Obj *markSet1InsertObj = Tcl_NewObj();
- Tcl_Obj *markSet2InsertObj = Tcl_NewObj();
+ Tcl_Obj *markSet2InsertObj = NULL;
Tcl_Obj *insertCmdObj = Tcl_NewObj();
Tcl_Obj *deleteCmdObj = Tcl_NewObj();