mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
xxxgtk_textview_get_text must be g_freed after use
This commit is contained in:
parent
833a681a5e
commit
5e376265e4
@ -252,7 +252,9 @@ public:
|
|||||||
void set_option_from_ui_item(GncOption& option) noexcept override
|
void set_option_from_ui_item(GncOption& option) noexcept override
|
||||||
{
|
{
|
||||||
auto widget{GTK_TEXT_VIEW(get_widget())};
|
auto widget{GTK_TEXT_VIEW(get_widget())};
|
||||||
option.set_value(std::string{xxxgtk_textview_get_text(widget)});
|
auto str{xxxgtk_textview_get_text(widget)};
|
||||||
|
option.set_value(std::string{str});
|
||||||
|
g_free (str);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user