[fusion-commits] Animation plugin: Changes to 'master' (70b162824144be7821e804067416c4e4d76a67d4)

maniac at server.beryl-project.org maniac at server.beryl-project.org
Fri Jul 13 09:31:11 CEST 2007


New commits:
commit 70b162824144be7821e804067416c4e4d76a67d4
Author: Danny Baumann <dannybaumann at web.de>
Date:   Fri Jul 13 09:31:05 2007 +0200

    Properly handle out-of-memory conditions when updating the client list copy.


 animation.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


Modified: fusion/plugins/animation/animation.c
===================================================================
--- fusion/plugins/animation/animation.c
+++ fusion/plugins/animation/animation.c
@@ -2774,10 +2774,14 @@ updateLastClientListStacking(CompScreen *s)
 	Window *list;
 
 	list = realloc (as->lastClientListStacking, sizeof (Window) * n);
+	as->lastClientListStacking  = list;
+
 	if (!list)
+	{
+	    as->nLastClientListStacking = 0;
 	    return;
+	}
 
-	as->lastClientListStacking  = list;
 	as->nLastClientListStacking = n;
     }
 


More information about the commits mailing list