Properly release resources used by bgimage

Also allow per OS Window bg images in the future
This commit is contained in:
Kovid Goyal
2020-01-31 12:17:54 +05:30
parent 8e7b8b70dc
commit fdd7fe1948
5 changed files with 32 additions and 26 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ typedef struct {
int viewport_width, viewport_height, window_width, window_height;
double viewport_x_ratio, viewport_y_ratio;
Tab *tabs;
BackgroundImage *bgimage;
BackgroundImage bgimage;
unsigned int active_tab, num_tabs, capacity, last_active_tab, last_num_tabs, last_active_window_id;
bool focused_at_last_render, needs_render;
ScreenRenderData tab_bar_render_data;
@@ -178,7 +178,7 @@ typedef struct {
id_type os_window_id_counter, tab_id_counter, window_id_counter;
PyObject *boss;
BackgroundImage *bgimage;
BackgroundImage bgimage;
OSWindow *os_windows;
size_t num_os_windows, capacity;
OSWindow *callback_os_window;