[Pkg-xfce-devel] Bug#519181: Bug#519181: xfce4-sensors-plugin: Patch providing working example code fix
On Fri, Mar 20, 2009 at 17:49:10 -0400, Dave Witbrodt wrote:
> Package: xfce4-sensors-plugin
> Version: 0.10.99.6-1.dwfix
> Followup-For: Bug #519181
>
>
> Attached is a patch showing changes I made which fix the crash problem on my
> own machine. I created the patch like this:
Hi,
in your previous mail, you wrote that the segfault is caused by calls
to g_free() with an uninitialized checktext variable. Without looking
at the code, wouldn't just initializing cleartext with NULL be a much
smaller fix? I assume that g_free() behaves like free() here ("If ptr
is NULL, no operation is performed"), at least it does so according to
the glib documentation: "If mem is NULL it simply returns".
Regards,
Tino
Reply to: