Bug 151412 - [PATCH] battery applet crashes when closing the low batt notification and pluging the laptop
[PATCH] battery applet crashes when closing the low batt notification and plu...
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: battery
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
:
: 151382 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2004-08-30 11:01 UTC by Carlos Garnacho
Modified: 2004-12-22 21:47 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
backtrace of the crash (1.53 KB, text/plain)
2004-08-30 11:02 UTC, Carlos Garnacho
  Details
Proposed patch to fix it (3.80 KB, patch)
2004-08-30 11:04 UTC, Carlos Garnacho
none Details | Diff | Review

Description Carlos Garnacho 2004-08-30 11:01:05 UTC
When you close the dialog you're destroying the widget, but not setting it to
NULL, so when you plug the laptop you're trying to do gtk_widget_destroy() on
random memory
Comment 1 Carlos Garnacho 2004-08-30 11:02:23 UTC
Created attachment 31085 [details]
backtrace of the crash
Comment 2 Carlos Garnacho 2004-08-30 11:04:50 UTC
Created attachment 31086 [details] [review]
Proposed patch to fix it

Note that the patch also fixes a typo when connecting the "response" signal in
the dialog that notifies when the batt is fully recharged
Comment 3 Carlos Garnacho 2004-08-30 11:14:40 UTC
*** Bug 151382 has been marked as a duplicate of this bug. ***
Comment 4 Danielle Madeley 2004-08-30 12:25:50 UTC
I thought I'd fixed this. Oh well, committed now, thanks Carlos.

Note You need to log in before you can comment on or make changes to this bug.