[LyX/master] fixup 97cf2b6a: avoid leak
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Feb 27 17:37:13 UTC 2024
commit 789a886af8064a8daadffe06cd1515a747e4dda6
Author: Jean-Marc Lasgouttes <lasgouttes at 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;
More information about the lyx-cvs
mailing list