all repos — openbox @ 1d9991a0cd9b04dfa96a19bc73b40f01651de478

openbox fork - make it a bit more like ryudo

Fix some memleaks.

missing RrFontClose for osd_font in two places.
missing a g_free(area);
Mikael Magnusson mikachu@comhem.se
commit

1d9991a0cd9b04dfa96a19bc73b40f01651de478

parent

3febcbb9ae6a31edbd64a86f0045148bb052fcff

3 files changed, 6 insertions(+), 2 deletions(-)

jump to
M openbox/config.copenbox/config.c

@@ -982,6 +982,7 @@ RrFontClose(config_font_activewindow);

RrFontClose(config_font_inactivewindow); RrFontClose(config_font_menuitem); RrFontClose(config_font_menutitle); + RrFontClose(config_font_osd); for (it = config_desktops_names; it; it = g_slist_next(it)) g_free(it->data);
M openbox/popup.copenbox/popup.c

@@ -257,6 +257,8 @@

x=MAX(MIN(x, area->x+area->width-w),area->x); y=MAX(MIN(y, area->y+area->height-h),area->y); + g_free(area); + if (m == screen_num_monitors) { RECT_SET(mon, x, y, w, h); m = screen_find_monitor(&mon);

@@ -266,6 +268,8 @@ area = screen_physical_area_monitor(m);

x=MAX(MIN(x, area->x+area->width-w),area->x); y=MAX(MIN(y, area->y+area->height-h),area->y); + + g_free(area); } /* set the windows/appearances up */

@@ -301,8 +305,6 @@ } else {

popup_show_timeout(self); } } - - g_free(area); } void popup_hide(ObPopup *self)
M render/theme.crender/theme.c

@@ -1455,6 +1455,7 @@ RrFontClose(theme->win_font_focused);

RrFontClose(theme->win_font_unfocused); RrFontClose(theme->menu_title_font); RrFontClose(theme->menu_font); + RrFontClose(theme->osd_font); RrAppearanceFree(theme->a_disabled_focused_max); RrAppearanceFree(theme->a_disabled_unfocused_max);