File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
include/lsp-plug.in/tk/style Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
*******************************************************************************
4
4
5
5
=== 1.0.30 ===
6
-
6
+ * Fixed use after free for several scenarios when destroying the display.
7
7
8
8
=== 1.0.29 ===
9
9
* Added text clipping function for tk::Label.
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ namespace lsp
136
136
Schema (Schema &&) = delete ;
137
137
virtual ~Schema ();
138
138
139
+ void destroy ();
140
+
139
141
Schema & operator = (const Schema &) = delete ;
140
142
Schema & operator = (Schema &&) = delete ;
141
143
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ namespace lsp
60
60
}
61
61
62
62
Schema::~Schema ()
63
+ {
64
+ destroy ();
65
+ }
66
+
67
+ void Schema::destroy ()
63
68
{
64
69
// Manually unbind all properties before destroying context
65
70
sScaling .unbind ();
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ namespace lsp
81
81
sSlots .execute (SLOT_DESTROY, NULL );
82
82
sSlots .destroy ();
83
83
84
+ // Destroy schema
85
+ sSchema .destroy ();
86
+
84
87
// Destroy display
85
88
if (pDisplay != NULL )
86
89
{
You can’t perform that action at this time.
0 commit comments