LCL-GTK2: Free memory block after use. Issue #31641, patch from Anton Kavalenka.

git-svn-id: trunk@54554 -
This commit is contained in:
juha 2017-04-07 09:43:27 +00:00
parent 816fe397ca
commit 38cf175df2

View File

@ -1075,6 +1075,7 @@ begin
if (AStart <> AEnd) then
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), p, -1);
gtk_editable_select_region(PGtkEditable(AGtkWidget), 0, 0);
g_free(p);
end;
end;
end;