all repos — openbox @ e8b6ead25a4c266dcc6bc184626eaecedcd176eb

openbox fork - make it a bit more like ryudo

NULL ic when we failed to load an image
Mikael Magnusson mikachu@gmail.com
commit

e8b6ead25a4c266dcc6bc184626eaecedcd176eb

parent

567fd15eebdd44e50cef140419dbf7a336708109

1 files changed, 3 insertions(+), 1 deletions(-)

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

@@ -299,8 +299,10 @@ if (ic)

RrImageRef(ic); else { ic = RrImageNew(ob_rr_icons); - if (!RrImageAddPictureName(ic, icon)) + if (!RrImageAddPictureName(ic, icon)) { RrImageUnref(ic); /* no need to keep it around */ + ic = NULL; + } } e->data.normal.icon = ic;