diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-14 10:47:49 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2008-02-14 11:44:28 +0100 |
| commit | ea435b99a804b755312bcbb9371faa4c0111d43e (patch) | |
| tree | b946906afe6bb804a171848f2c65dbc4d9fef577 /openbox/menu.c | |
| parent | ec7898dda7bfdd56cfb4d9ff51dddc1c1ab1f00e (diff) | |
Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index 768630bd..63b74b95 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -500,6 +500,7 @@ void menu_entry_unref(ObMenuEntry *self) if (self && --self->ref == 0) { switch (self->type) { case OB_MENU_ENTRY_TYPE_NORMAL: + RrImageUnref(self->data.normal.icon); g_free(self->data.normal.label); while (self->data.normal.actions) { actions_act_unref(self->data.normal.actions->data); |
