Hi,
please consider patch below (and attached)
e/modules/battery: remove useless eina_stringshare_del call

Regards,
Basil Gor
---
 e/src/modules/battery/e_mod_udev.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/e/src/modules/battery/e_mod_udev.c 
b/e/src/modules/battery/e_mod_udev.c
index 46baae5..421e511 100644
--- a/e/src/modules/battery/e_mod_udev.c
+++ b/e/src/modules/battery/e_mod_udev.c
@@ -227,10 +227,7 @@ _battery_udev_battery_update(const char *syspath, Battery 
*bat)
      GET_NUM(bat, last_full_charge, POWER_SUPPLY_CHARGE_FULL);
    test = eeze_udev_syspath_get_property(bat->udi, "POWER_SUPPLY_ENERGY_NOW");
    if (!test)
-     {
-               eina_stringshare_del(test);
-        test = eeze_udev_syspath_get_property(bat->udi, 
"POWER_SUPPLY_CHARGE_NOW");
-     }
+     test = eeze_udev_syspath_get_property(bat->udi, 
"POWER_SUPPLY_CHARGE_NOW");
    if (test)
      {
 
-- 
1.7.11.4

e/modules/battery: remove useless eina_stringshare_del call

---
 e/src/modules/battery/e_mod_udev.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/e/src/modules/battery/e_mod_udev.c 
b/e/src/modules/battery/e_mod_udev.c
index 46baae5..421e511 100644
--- a/e/src/modules/battery/e_mod_udev.c
+++ b/e/src/modules/battery/e_mod_udev.c
@@ -227,10 +227,7 @@ _battery_udev_battery_update(const char *syspath, Battery 
*bat)
      GET_NUM(bat, last_full_charge, POWER_SUPPLY_CHARGE_FULL);
    test = eeze_udev_syspath_get_property(bat->udi, "POWER_SUPPLY_ENERGY_NOW");
    if (!test)
-     {
-               eina_stringshare_del(test);
-        test = eeze_udev_syspath_get_property(bat->udi, 
"POWER_SUPPLY_CHARGE_NOW");
-     }
+     test = eeze_udev_syspath_get_property(bat->udi, 
"POWER_SUPPLY_CHARGE_NOW");
    if (test)
      {
 
-- 
1.7.11.4

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to