From: Dana Jansens Date: Sun, 14 Sep 2003 06:40:33 +0000 (+0000) Subject: dont waste a strdup which is never freed X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d89391ec941077c556246bfc49b53919e694fd3e;p=chaz%2Fopenbox dont waste a strdup which is never freed --- diff --git a/openbox/client.c b/openbox/client.c index 1cc8595b..eae55bcc 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1403,7 +1403,7 @@ void client_update_class(ObClient *self) } if (PROP_GETS(self->window, wm_window_role, locale, &s)) - self->role = g_strdup(s); + self->role = s; if (self->name == NULL) self->name = g_strdup(""); if (self->class == NULL) self->class = g_strdup("");