Commit 31315a5a authored by Erwan Tulou's avatar Erwan Tulou

skins2(x11): fix vlc crashing on Kwin

parent f340f5ef
......@@ -344,11 +344,14 @@ SkinsRect X11Factory::getWorkArea() const
&ret, &i_format, &i_items, &i_bytesafter,
(unsigned char **)&values ) == Success )
{
x = values[0];
y = values[1];
w = values[2];
h = values[3];
XFree( values );
if( values )
{
x = values[0];
y = values[1];
w = values[2];
h = values[3];
XFree( values );
}
}
}
msg_Dbg( getIntf(),"WorkArea: %ix%i at +%i+%i", w, h, x, y );
......
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