[hackers] [wmii] Fix crash on floating layer resizal

From: <uriel_AT_localhost.localdomain>
Date: Thu Feb 15 15:56:04 2007

changeset: 1878:fd017b71db05
user: uriel_AT_localhost.localdomain
date: Thu Feb 15 15:52:47 2007 +0100
summary: Fix crash on floating layer resizal

diff -r b9710904a5f3 -r fd017b71db05 mouse.c
--- a/mouse.c Thu Feb 15 02:32:02 2007 -0800
+++ b/mouse.c Thu Feb 15 15:52:47 2007 +0100
@@ -413,8 +413,10 @@ do_mouse_resize(Client *c, Bool grabbox,
                         }else
                                 map_client(c);
 
- if(rects)
+ if(rects) {
                                 free(rects);
+ rects = nil;
+ }
 
                         XUngrabPointer(blz.dpy, CurrentTime);
                         XSync(blz.dpy, False);
Received on Thu Feb 15 2007 - 15:56:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:20 UTC