rpms/compiz-fusion/devel compiz-fusion.spec, 1.20, 1.21 workarounds-fullscreenfix.patch, 1.4, 1.5

Adel Gadllah (drago01) fedora-extras-commits at redhat.com
Sun Jan 6 18:13:42 UTC 2008


Author: drago01

Update of /cvs/pkgs/rpms/compiz-fusion/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2285

Modified Files:
	compiz-fusion.spec workarounds-fullscreenfix.patch 
Log Message:
readd memory leak fix


Index: compiz-fusion.spec
===================================================================
RCS file: /cvs/pkgs/rpms/compiz-fusion/devel/compiz-fusion.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- compiz-fusion.spec	4 Jan 2008 10:32:32 -0000	1.20
+++ compiz-fusion.spec	6 Jan 2008 18:12:59 -0000	1.21
@@ -2,7 +2,7 @@
 
 Name: compiz-fusion
 Version: 0.6.0       
-Release: 12%{?dist}
+Release: 13%{?dist}
 Summary: Collection of Compiz Fusion plugins for Compiz      
 
 Group: User Interface/Desktops        
@@ -133,6 +133,9 @@
 
 
 %changelog
+* Sun Jan 06 2008 Adel Gadllah <adel.gadllah at gmail.com> 0.6.0-13
+- Readded accidently dropped memoryleak fix
+
 * Thu Jan 03 2008 Adel Gadllah <adel.gadllah at gmail.com> 0.6.0-12
 - Fix build with gcc43
 

workarounds-fullscreenfix.patch:

Index: workarounds-fullscreenfix.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compiz-fusion/devel/workarounds-fullscreenfix.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- workarounds-fullscreenfix.patch	30 Dec 2007 13:12:30 -0000	1.4
+++ workarounds-fullscreenfix.patch	6 Jan 2008 18:12:59 -0000	1.5
@@ -1,6 +1,6 @@
 diff -upNr compiz-fusion-plugins-main-0.6.0.orign/src/workarounds/workarounds.c compiz-fusion-plugins-main-0.6.0/src/workarounds/workarounds.c
 --- compiz-fusion-plugins-main-0.6.0.orign/src/workarounds/workarounds.c	2007-10-15 19:43:43.000000000 +0200
-+++ compiz-fusion-plugins-main-0.6.0/src/workarounds/workarounds.c	2007-12-30 13:56:18.000000000 +0100
++++ compiz-fusion-plugins-main-0.6.0/src/workarounds/workarounds.c	2008-01-06 18:59:57.000000000 +0100
 @@ -51,6 +51,16 @@ typedef struct _WorkaroundsWindow {
      Bool isFullscreen;
  } WorkaroundsWindow;
@@ -28,7 +28,7 @@
      {
  	unsigned int state = w->state & ~CompWindowStateFullscreenMask;
  
-@@ -211,8 +220,56 @@ workaroundsFixupFullscreen (CompWindow *
+@@ -211,8 +220,63 @@ workaroundsFixupFullscreen (CompWindow *
  	    recalcWindowType (w);
  	    recalcWindowActions (w);
  	    updateWindowAttributes (w, CompStackingUpdateModeNormal);
@@ -55,7 +55,8 @@
      }
 +    else if(!isFullSize && (w->state & CompWindowStateFullscreenMask) && mfwList) {
 +	/*did we set the flag?*/
-+	WorkaroundsManagedFsWindow *mfw;
++	WorkaroundsManagedFsWindow *mfw,*mfwPrev;
++	mfwPrev = mfwList;
 +
 +	for(mfw = mfwList; mfw->next != NULL; mfw = mfw->next) 
 +	{
@@ -75,9 +76,15 @@
 +	 		   recalcWindowActions (w);
 +	 		   updateWindowAttributes (w, CompStackingUpdateModeNormal);
 +			}
++
++			mfwPrev->next=mfw->next;
++	        	free(mfw);
++
 +			break;
 +		}
-+	
++
++		mfwPrev = mfw;
++
 +    	}
 +   }
 +	
@@ -85,7 +92,7 @@
  }
  
  static void
-@@ -356,6 +413,27 @@ workaroundsHandleEvent (CompDisplay *d,
+@@ -356,6 +420,27 @@ workaroundsHandleEvent (CompDisplay *d,
  	if (w && w->attrib.override_redirect)
  	    workaroundsDoFixes (w);
  	break;




More information about the fedora-extras-commits mailing list