Skip to content

Commit

Permalink
Merge pull request #2221 from rrrapha/upower-0.99.7
Browse files Browse the repository at this point in the history
Fix battery widget with upower <= 0.99.7
  • Loading branch information
uklotzde committed Aug 7, 2019
2 parents 9487467 + 4fccb5f commit 0da8d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/battery/batterylinux.cpp
Original file line number Diff line number Diff line change
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 0da8d8b

Please sign in to comment.