[Pkg-xfce-commits] r2200 - in goodies/xfce4-sensors-plugin/debian: . patches

corsac at alioth.debian.org corsac at alioth.debian.org
Fri Aug 8 05:15:13 UTC 2008


Author: corsac
Date: 2008-08-08 05:15:12 +0000 (Fri, 08 Aug 2008)
New Revision: 2200

Modified:
   goodies/xfce4-sensors-plugin/debian/changelog
   goodies/xfce4-sensors-plugin/debian/patches/01_fix-acpi-fan-infos.patch
Log:
debian/patches: 02_fix-acpi-battery-path fixed to correctly free the state
variable.

Modified: goodies/xfce4-sensors-plugin/debian/changelog
===================================================================
--- goodies/xfce4-sensors-plugin/debian/changelog	2008-08-06 20:44:43 UTC (rev 2199)
+++ goodies/xfce4-sensors-plugin/debian/changelog	2008-08-08 05:15:12 UTC (rev 2200)
@@ -1,3 +1,10 @@
+xfce4-sensors-plugin (0.10.99.5~svn-r4998-3) UNRELEASED; urgency=low
+
+  * debian/patches: 02_fix-acpi-battery-path fixed to correctly free the state
+    variable.
+
+ -- Yves-Alexis Perez <corsac at debian.org>  Fri, 08 Aug 2008 06:58:56 +0200
+
 xfce4-sensors-plugin (0.10.99.5~svn-r4998-2) unstable; urgency=low
 
   [ Stefan Ott ]

Modified: goodies/xfce4-sensors-plugin/debian/patches/01_fix-acpi-fan-infos.patch
===================================================================
--- goodies/xfce4-sensors-plugin/debian/patches/01_fix-acpi-fan-infos.patch	2008-08-06 20:44:43 UTC (rev 2199)
+++ goodies/xfce4-sensors-plugin/debian/patches/01_fix-acpi-fan-infos.patch	2008-08-08 05:15:12 UTC (rev 2200)
@@ -1,5 +1,7 @@
---- xfce4-sensors-plugin-0.10.99.5.orig/panel-plugin/acpi.c	2008-08-06 01:56:00.063518101 +0200
-+++ xfce4-sensors-plugin-0.10.99.5/panel-plugin/acpi.c	2008-08-06 03:11:08.635447284 +0200
+Index: xfce4-sensors-plugin-0.10.99.5~svn-r4998/panel-plugin/acpi.c
+===================================================================
+--- xfce4-sensors-plugin-0.10.99.5~svn-r4998.orig/panel-plugin/acpi.c	2008-08-08 06:51:51.000000000 +0200
++++ xfce4-sensors-plugin-0.10.99.5~svn-r4998/panel-plugin/acpi.c	2008-08-08 06:55:09.000000000 +0200
 @@ -445,7 +445,7 @@
  void
  refresh_acpi (gpointer chip_feature, gpointer data)
@@ -9,7 +11,7 @@
      t_chipfeature *cf;
  
      TRACE ("enters refresh_acpi");
-@@ -472,8 +472,18 @@
+@@ -470,8 +470,21 @@
              break;
  
          case STATE:
@@ -23,10 +25,13 @@
 +            if(state==NULL){
 +                DBG("get_acpi_value has returned NULL!");
 +                cf->raw_value = 0.0;
-+                break;
 +            }
-+            // on my box there is a \n after "on".. dunno if that's normal, so i only compare 2 chars
-+            cf->raw_value = strncmp(state, "on", 2)==0 ? 1.0 : 0.0;
++            else 
++            {
++                cf->raw_value = strncmp(state, "on", 2)==0 ? 1.0 : 0.0;
++                g_free(state);
++            }
++                
              g_free (file);
              /* g_free (cf->formatted_value);
              cf->formatted_value = g_strdup_printf (_("%.0f"), cf->raw_value); */




More information about the Pkg-xfce-commits mailing list