]> Dogcows Code - chaz/openbox/commitdiff
dont waste a strdup which is never freed
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:40:33 +0000 (06:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:40:33 +0000 (06:40 +0000)
openbox/client.c

index 1cc8595b8df7dfe75e0f519481d43a4a3e6ef7a2..eae55bcc8adbb13afd66f04411a0db39f174144d 100644 (file)
@@ -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("");
This page took 0.025617 seconds and 4 git commands to generate.