Skip to content

Commit

Permalink
Fix battery widget with upower <= 0.99.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrapha committed Aug 5, 2019
1 parent 0758f7e commit c3e4bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/battery/batterylinux.cpp
Expand Up @@ -45,7 +45,7 @@ void BatteryLinux::read() {
VERIFY_OR_DEBUG_ASSERT(devices) {
return;
}
devices = g_ptr_array_new_with_free_func((GDestroyNotify) g_object_unref);
g_ptr_array_set_free_func(devices, (GDestroyNotify) g_object_unref);
#endif

for (guint i = 0; i < devices->len; ++i) {
Expand Down

0 comments on commit c3e4bf7

Please sign in to comment.