fixed memory leak
svn path=/trunk/kdebase/kwin/; revision=388495
This commit is contained in:
parent
e1279c6cf8
commit
e9ecc46ac0
1 changed files with 27 additions and 10 deletions
|
@ -380,7 +380,7 @@ run_fades (Display *dpy)
|
|||
if (fade_time - now > 0)
|
||||
return;
|
||||
steps = 1 + (now - fade_time) / fade_delta;
|
||||
for (next = fades; f = next; )
|
||||
for (next = fades; (f = next); )
|
||||
{
|
||||
win *w = f->w;
|
||||
next = f->next;
|
||||
|
@ -1169,6 +1169,8 @@ paint_all (Display *dpy, XserverRegion region)
|
|||
0, 0, 0, 0, x, y, wid, w->titleHeight);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!w->borderClip)
|
||||
|
@ -1419,6 +1421,21 @@ finish_unmap_win (Display *dpy, win *w)
|
|||
XFixesDestroyRegion (dpy, w->borderSize);
|
||||
w->borderSize = None;
|
||||
}
|
||||
|
||||
if (w->titleSize)
|
||||
{
|
||||
set_ignore (dpy, NextRequest (dpy));
|
||||
XFixesDestroyRegion (dpy, w->titleSize);
|
||||
w->titleSize = None;
|
||||
}
|
||||
|
||||
if (w->contentSize)
|
||||
{
|
||||
set_ignore (dpy, NextRequest (dpy));
|
||||
XFixesDestroyRegion (dpy, w->contentSize);
|
||||
w->contentSize = None;
|
||||
}
|
||||
|
||||
if (w->shadow)
|
||||
{
|
||||
XRenderFreePicture (dpy, w->shadow);
|
||||
|
@ -2799,9 +2816,9 @@ main (int argc, char **argv)
|
|||
} while (QLength (dpy));
|
||||
if (allDamage && !autoRedirect)
|
||||
{
|
||||
static int paint;
|
||||
/*static int paint;*/
|
||||
paint_all (dpy, allDamage);
|
||||
paint++;
|
||||
/*paint++;*/
|
||||
XSync (dpy, False);
|
||||
allDamage = None;
|
||||
clipChanged = False;
|
||||
|
|
Loading…
Reference in a new issue