]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1455: Haiku: dailog objects created with no reference v9.1.1455
authorjinyaoguo <guo846@purdue.edu>
Wed, 11 Jun 2025 19:30:01 +0000 (21:30 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 11 Jun 2025 19:30:01 +0000 (21:30 +0200)
commitae31d7bfb4ccc47c4843735f70ed68166a6436da
tree560209797648706a056d8e57f51d53d3e4a6c7c1
parent51289207f81772592a5a34f1576f2aeb7d5530b7
patch 9.1.1455: Haiku: dailog objects created with no reference

Problem:  Haiku: dailog objects created with no reference
Solution: delete the objects before returning (jinyaoguo)

In the functions gui_mch_dialog() and gui_mch_font_dialog(), Dialog
objects are created but never escape the function scope. The call to
dialog->Go() only returns a boolean value and does not retain any
reference to the Dialog object itself, which may lead to potential
memory leak.

Fix this by deleting the object after using it.

closes: #17501

Signed-off-by: jinyaoguo <guo846@purdue.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_haiku.cc
src/version.c