[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-cvs
Subject: [LyX/master] fixup 97cf2b6a: avoid leak
From: Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date: 2024-02-27 17:37:13
Message-ID: 76d6ad831bace6e5849bfea97958347a.lyx-cvs () lists ! lyx ! org
[Download RAW message or body]
commit 789a886af8064a8daadffe06cd1515a747e4dda6
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Date: Tue Feb 27 18:37:07 2024 +0100
fixup 97cf2b6a: avoid leak
---
src/Text.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 9fb59b5ec9..e1c8830dc3 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -5799,7 +5799,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
cur.resetAnchor();
cur.selection(true);
cur.top().pos() = 0;
- }
+ } else
+ delete inset;
}
break;
--
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic