Commit Graph

7 Commits

Author SHA1 Message Date
Carsten Haitzler 48fb969e20 eeze - fix if formatting to be consistent within file
some if's were single line:
  if (x) blah();

others were
  if (x)
    blah();

make formatting consistent at any rate.

same for EINA_LIST_FREE() blah();
2015-10-10 10:50:44 +09:00
Carsten Haitzler 55e49f12bf fix tom's fix by nmot making e segfault EVERY EXIT
when fixing something like a leak .. it might be good to fix it to not
CRASH 100% of the time. a leak (minor) is better than a crash by far.

the strings in the list are stringshared.

fixes 896c18045a
2015-10-10 10:45:30 +09:00
Tom Hacohen 896c18045a Eeze sensor udev: Fix memory leak and possible crash.
Due to a misplaced semicolon, EINA_LIST_FREE was doing nothing and only
the last part was freed if there was one, and probably a crash if there
wasn't.

This shows again that having statements without {} is dangerous. We need
to force {} and add a lint rule, or at the very least, add a rule to put
the ; in a new line (like clang warns about by default anyway).

(Same as issue found in previous commit)

@fix
2015-10-09 12:32:37 +01:00
Stefan Schmidt c2da27328b eeze/sensor: Simplify object handling in async paths.
This follows the simplified handling of sensor object we are already
doing for the sync paths. Its a bit more complicated here as we need
to pass all data through the module specific async handling. But the
result should be the same.
2013-04-22 15:58:28 +01:00
Stefan Schmidt 27a711b83c eeze/sensor: Simplify sensor object handling.
We rely on the app to provide a sensible object pointer and we now longer
need to have a copy of the object around to operate on it.

Simplifies code, maintenance and reduces mem copies. Win-Win :)
2013-04-19 09:21:12 +01:00
Carsten Haitzler 6ccae99bd1 let's fix eeze sensors to not segv on shutdown.. dup registered fake
(udev registered it as fake)... and in the process i found that we
probably double free as sensor is calloced in the module and AGAIN in
eeze sensor core... oh and symbols probably might lak from modules..
so static them up yo.
2013-04-18 00:30:04 +09:00
Stefan Schmidt f58ffeb7be eeze/sensor: Add small udev module to read temperature from sysfs
This module does only provide a temperature sensor. Some pieces
borrowed from the temget code.
2013-04-17 09:09:42 +01:00