X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Faction.c;h=0a969a86607f69fe3356e7ae98f87bf7ed60975e;hb=ebf24d5224781e47b62cf20fb3852ef9782f200b;hp=efc7f1ef513b89dba2bac42d9fb692e2ef2e3556;hpb=8fe0cb8989c1fe12b30b9030b446345f25340d35;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index efc7f1ef..0a969a86 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -800,6 +800,7 @@ void action_execute(union ActionData *data) g_warning("failed to execute '%s': %s", cmd, e->message); } + g_free(cmd); } else { g_warning("failed to convert '%s' from utf8", data->execute.path); } @@ -1231,11 +1232,12 @@ void action_growtoedge(union ActionData *data) { int x, y, width, height, dest; ObClient *c = data->diraction.any.c; - Rect *a = screen_area(c->desktop); + Rect *a; if (!c) return; + a = screen_area(c->desktop); x = c->frame->area.x; y = c->frame->area.y; width = c->frame->area.width;