Commit 0e016d4b authored by Guido Gunther's avatar Guido Gunther

topevel: Avoid NULL check

g_free() does this already.
Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent 6e3e490c
......@@ -70,8 +70,7 @@ handle_zwlr_foreign_toplevel_handle_app_id(
PhoshToplevel *self = data;
g_return_if_fail (PHOSH_IS_TOPLEVEL (self));
if (self->app_id)
g_free (self->app_id);
g_free (self->app_id);
self->app_id = g_strdup (app_id);
g_debug ("%p: Got app_id %s", zwlr_foreign_toplevel_handle_v1, app_id);
g_object_notify_by_pspec (G_OBJECT (self), props[PHOSH_TOPLEVEL_PROP_APP_ID]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment