mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +00:00
Fixed some memory leaks.
This commit is contained in:
parent
c384b6c19b
commit
a67c563d6f
@ -237,6 +237,7 @@ static bool alert_msg_proc(JWidget widget, JMessage msg)
|
|||||||
|
|
||||||
usprintf(buf, "In %d seconds the screen will be restored.", seconds_to_accept);
|
usprintf(buf, "In %d seconds the screen will be restored.", seconds_to_accept);
|
||||||
jwidget_set_text((JWidget)labels->end->next->next->data, buf);
|
jwidget_set_text((JWidget)labels->end->next->next->data, buf);
|
||||||
|
jlist_free(labels);
|
||||||
|
|
||||||
if (seconds_to_accept == 0) {
|
if (seconds_to_accept == 0) {
|
||||||
jmanager_stop_timer(timer_to_accept);
|
jmanager_stop_timer(timer_to_accept);
|
||||||
|
@ -133,6 +133,8 @@ void Console::printf(const char *format, ...)
|
|||||||
jwidget_set_rect(wid_console, rect);
|
jwidget_set_rect(wid_console, rect);
|
||||||
jwindow_center(wid_console);
|
jwindow_center(wid_console);
|
||||||
jwidget_dirty(wid_console);
|
jwidget_dirty(wid_console);
|
||||||
|
|
||||||
|
jrect_free(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
text = jwidget_get_text(wid_textbox);
|
text = jwidget_get_text(wid_textbox);
|
||||||
|
@ -52,9 +52,11 @@ void install_drop_files()
|
|||||||
void uninstall_drop_files()
|
void uninstall_drop_files()
|
||||||
{
|
{
|
||||||
unsubclass_hwnd();
|
unsubclass_hwnd();
|
||||||
|
|
||||||
jmutex_free(dropped_files_mutex);
|
jmutex_free(dropped_files_mutex);
|
||||||
dropped_files_mutex = NULL;
|
dropped_files_mutex = NULL;
|
||||||
|
|
||||||
|
dropped_files.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_for_dropped_files()
|
void check_for_dropped_files()
|
||||||
|
@ -541,6 +541,7 @@ static void combobox_close_window(JWidget widget)
|
|||||||
ComboBox* combobox = reinterpret_cast<ComboBox*>(jwidget_get_data(widget, JI_COMBOBOX));
|
ComboBox* combobox = reinterpret_cast<ComboBox*>(jwidget_get_data(widget, JI_COMBOBOX));
|
||||||
if (combobox->window) {
|
if (combobox->window) {
|
||||||
jwindow_close(combobox->window, widget);
|
jwindow_close(combobox->window, widget);
|
||||||
|
jwidget_free(combobox->window);
|
||||||
combobox->window = NULL;
|
combobox->window = NULL;
|
||||||
|
|
||||||
jmanager_remove_msg_filter(JM_BUTTONPRESSED, widget);
|
jmanager_remove_msg_filter(JM_BUTTONPRESSED, widget);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user