mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix a couple of minor leaked ui::Messages
This commit is contained in:
parent
b02fc43506
commit
eec9ed0bcc
@ -942,9 +942,9 @@ void KeyboardShortcutsCommand::onExecute(Context* context)
|
||||
|
||||
// Save preferences in widgets that are bound to options automatically
|
||||
{
|
||||
Message* msg = new Message(kSavePreferencesMessage);
|
||||
msg->setPropagateToChildren(msg);
|
||||
window.sendMessage(msg);
|
||||
Message msg(kSavePreferencesMessage);
|
||||
msg.setPropagateToChildren(&msg);
|
||||
window.sendMessage(&msg);
|
||||
}
|
||||
|
||||
// Save keyboard shortcuts in configuration file
|
||||
|
@ -589,9 +589,9 @@ public:
|
||||
void saveConfig() {
|
||||
// Save preferences in widgets that are bound to options automatically
|
||||
{
|
||||
Message* msg = new Message(kSavePreferencesMessage);
|
||||
msg->setPropagateToChildren(msg);
|
||||
sendMessage(msg);
|
||||
Message msg(kSavePreferencesMessage);
|
||||
msg.setPropagateToChildren(&msg);
|
||||
sendMessage(&msg);
|
||||
}
|
||||
|
||||
// Update language
|
||||
|
Loading…
x
Reference in New Issue
Block a user