e/modules/battery: need to stringshare

SVN revision: 48655
This commit is contained in:
Sebastian Dransfeld 2010-05-06 20:51:20 +00:00
parent 255a245acc
commit bf511e235c
1 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@ _battery_dbus_battery_props(void *data, void *reply_data, DBusError *error __UNU
str = e_hal_property_string_get(ret, s, &err); \
if (str) \
{ \
hbat->val = str; \
hbat->val = eina_stringshare_add(str); \
}
GET_BOOL(present, "battery.present");
@ -613,7 +613,7 @@ _battery_dbus_ac_adapter_props(void *data, void *reply_data, DBusError *error __
str = e_hal_property_string_get(ret, s, &err); \
if (str) \
{ \
hac->val = str; \
hac->val = eina_stringshare_add(str); \
}
GET_BOOL(present, "ac_adapter.present");