Nikolas Garofil
c51972b5e2
Use free_and_zero in ccurl_common.cc where appropriate
2010-02-23 15:48:18 +01:00
Pavel Labath
1e49ea9274
Safer version of free_and_zero
2010-02-23 15:13:49 +01:00
Pavel Labath
d7d8bb84ea
Add missing include
2010-02-23 15:07:12 +01:00
Nikolas Garofil
0e80e2908a
Use free_and_zero in ccurl_thread.cc where appropriate
2010-02-23 14:54:03 +01:00
Nikolas Garofil
397a7a252a
Fix removing the config and sending a SIGUSR1 results in segfault
...
This re-implements the fix of the previous commit because that one
assumed that only overwriting the configfile can cause the config
to reload
2010-02-23 02:58:44 +01:00
Cesare Tirabassi
8be18483e3
Fix LP: #525926 ; conky sigsegv if config file is deleted
...
Basically, we only relod if the file is modified but still handle the case
where the watch gets lost. Maybe we should just ignore IN_IGNORE altogether?
(cherry picked from commit 085c39d394
)
2010-02-22 22:48:59 +01:00
Nikolas Garofil
c2c58cd8d7
Use free_and_zero where possible in bmpx.cc
2010-02-22 22:03:14 +01:00
Nikolas Garofil
ad1b72ed94
Fix wrong output when nesting $combine-s
2010-02-22 19:27:05 +01:00
Nikolas Garofil
44a9e75290
Fix output of $combine when used in combination with $head
2010-02-22 16:30:37 +01:00
Nikolas Garofil
ade4f3fc0c
Minimize change in free_text_objects introduced by b88d69dbfc
2010-02-22 14:22:24 +01:00
Nikolas Garofil
15e84fcfa1
Fix last memleak in $combine
2010-02-22 14:08:38 +01:00
Nikolas Garofil
e50ec9ded6
Fix $combine reading unallocated memory
2010-02-22 13:02:24 +01:00
Nikolas Garofil
b88d69dbfc
Implement fix from previous commit in another way to fix a leak that happens when conky closes
2010-02-21 20:15:08 +01:00
Nikolas Garofil
31e22acb4b
Fix crash with (for example): conky -s '${combine $uptime $uptime}'
2010-02-21 19:26:11 +01:00
Nikolas Garofil
d184efb418
When using without argument, make sure that it shows the essid of the first device that has one instead of using the default network device (because most of the times this will be a non-wireless device)
2010-02-21 15:12:38 +01:00
Nikolas Garofil
d91214e290
Fix using the wireless-vars
2010-02-20 17:59:51 +01:00
Nikolas Garofil
cbc5aaad91
Shrink code by adding free_and_zero()
2010-02-20 15:28:05 +01:00
Nikolas Garofil
a2a9ed054d
Shrink code by letting a separate function handle the resetting of optind
2010-02-20 14:34:40 +01:00
Nikolas Garofil
99b5352cff
Add --for-scripts support
2010-02-20 02:25:38 +01:00
Nikolas Garofil
0627946ca1
Make hiding ncurses memleaks optional and disable it by default
2010-02-19 13:21:40 +01:00
Nikolas Garofil
f695ed58d9
Hide false memleaks in a debugbuild
...
This makes sure valgrind doesn't show false memleaks that are caused by ncurses
instead of our code when we do a 'Debug' build. There is a also a disadvantage:
When your ncurses library is not build with the '--disable-leaks' option (this
is the case in the default version of ncurses of most distro's) and you build
conky with ncurses and debug turned on then you will see a segmentation fault
when you stop conky. On the other hand people that want to build conky as a
debug build with ncurses support will probably also have a ncurses with
--disable-leaks ...
2010-02-19 00:09:24 +01:00
Caleb Spare
c7fa36a5f2
$memwithbuffers object and bar (sf.net #2954143 )
...
I've added $memwithbuffers to complement $mem, $memeasyfree, etc. This
variable indicates the used system memory, regardless of buffers/caches. If
the "no_buffers" option is set to "no", it will be the same as $mem. The
reason I find this change useful is that I like to display both the total
used system memory and the memory being used by applications.
I've also included a memwithbuffersbar, which is the same as membar except
that it uses $memwithbuffers as the size instead of $mem.
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-02-18 18:32:25 +01:00
Nikolas Garofil
9b1a89e617
Fix current_mail_spool memleak
2010-02-18 01:25:32 +01:00
Pavel Labath
07746cdd5a
Merge remote branch 'origin/master' into lua-config
2010-02-17 22:53:39 +01:00
Pavel Labath
c61376b60b
A framework for registering config settins
...
similar to the one for data sources.
2010-02-17 22:52:19 +01:00
Nikolas Garofil
a1a73c23cb
Fix memleak in if_match
2010-02-17 20:26:50 +01:00
Pavel Labath
d6ea46f8cb
Update docs to be consistent with changes in previous commit
2010-02-17 19:55:39 +01:00
Pavel Labath
2585fabc52
Try to make $if_match better handle stranger inputs
...
This should fix sf.net #2953283
2010-02-17 19:44:02 +01:00
Ben Kibbey
d56a862467
Added AF_UNIX socket support.
...
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-02-17 09:32:54 -08:00
Nikolas Garofil
3ceb8cb570
Add support for scrolling in the other direction
2010-02-17 17:49:03 +01:00
Nikolas Garofil
afffe49977
Undo efb39867c7
, memleaks were falsely reported by valgrind
2010-02-17 14:49:06 +01:00
Nikolas Garofil
549e9740ff
Fix previous commit which breaks building with X11
2010-02-17 13:21:07 +01:00
Cesare Tirabassi
26fc643ffb
Fix commit 2c8ef724e6
which fails to build when X11 is not enabled
2010-02-17 12:51:11 +01:00
Nikolas Garofil
efb39867c7
Fix 3 memleaks in ncurses-related code
2010-02-16 19:20:48 +01:00
Nikolas Garofil
c06e54157f
Fix building in ncurses
2010-02-16 17:00:33 +01:00
Pavel Labath
a152a32d66
lua_isnil() binding
2010-02-16 16:46:16 +01:00
Nikolas Garofil
b9a7b0e33e
Fix last memleaks in scroll
...
This fix reverts reverts a part of commit 08122354a9
this is necessary because that commit blocks the calling of free_scroll
2010-02-16 15:45:32 +01:00
Pavel Labath
8bc8d9d7b8
Remove unneeded #includes
2010-02-16 15:14:40 +01:00
Nikolas Garofil
247c62c5d8
Fix another memleak in scroll
2010-02-16 13:27:49 +01:00
Pavel Labath
5b743293da
Add some comments to explain how things work
2010-02-16 12:32:53 +01:00
Nikolas Garofil
a6debedc93
Fix 3 memleaks that happen when scroll receives wrong args
2010-02-15 16:02:29 +01:00
Pavel Labath
ad6707fac9
More refactoring and (hopefully) simplification
...
The idea was to avoid passing the data_source factory function through two std::binds.
2010-02-15 13:18:53 +01:00
Pavel Labath
56266e9476
add lua_settop() binding
2010-02-15 13:00:33 +01:00
Nikolas Garofil
53af0f379f
Fix multiple definitions when building in FreeBSD
2010-02-14 22:58:02 +01:00
Nikolas Garofil
4793655974
Link with devstat when building in FreeBSD
2010-02-14 21:35:13 +01:00
Nikolas Garofil
3763c263c3
Make sure bsdapm functions can be reached
2010-02-14 21:22:31 +01:00
Pavel Labath
1d6009594c
Simplify data source creation, create it directly inside lua userdata
2010-02-14 20:36:17 +01:00
Nikolas Garofil
da4e9349f8
Link with kvm when building in FreeBSD
2010-02-14 20:20:45 +01:00
Nikolas Garofil
4c06be139c
Make sure that bsdapm.cc compiles in FreeBSD
2010-02-14 15:36:22 +01:00
Nikolas Garofil
7de3b9736a
Make sure that freebsd.cc compiles in FreeBSD
2010-02-14 15:26:44 +01:00