dont waste a strdup which is never freed
This commit is contained in:
parent
861cfbdabe
commit
d89391ec94
1 changed files with 1 additions and 1 deletions
|
@ -1403,7 +1403,7 @@ void client_update_class(ObClient *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PROP_GETS(self->window, wm_window_role, locale, &s))
|
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->name == NULL) self->name = g_strdup("");
|
||||||
if (self->class == NULL) self->class = g_strdup("");
|
if (self->class == NULL) self->class = g_strdup("");
|
||||||
|
|
Loading…
Reference in a new issue