|
2012-11-16
, 11:58
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#43
|
The Following User Says Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 12:04
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#44
|
The Following 4 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 12:11
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#45
|
The Following 6 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 12:47
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#46
|
alarm_event_delete(a->alarm_event); g_slist_free(a->buttons); free(a); alarms = g_slist_remove(alarms,a); alarm_events_cnt--;
alarm_event_delete(a->alarm_event); g_slist_free(a->buttons); if(a->notification) g_object_unref(G_OBJECT(a->notification)) free(a); alarms = g_slist_remove(alarms,a); alarm_events_cnt--;
The Following 4 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 12:54
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#47
|
|
2012-11-16
, 13:04
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#48
|
The Following 5 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 13:31
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#49
|
@freemangordon,
in alarm_remove() you have:
but you don't free the notification:Code:alarm_event_delete(a->alarm_event); g_slist_free(a->buttons); free(a); alarms = g_slist_remove(alarms,a); alarm_events_cnt--;
Code:alarm_event_delete(a->alarm_event); g_slist_free(a->buttons); if(a->notification) g_object_unref(G_OBJECT(a->notification)) free(a); alarms = g_slist_remove(alarms,a); alarm_events_cnt--;
also, is it OK to free(a) before g_slist_remove(), I assume g_slist_remove doesn't use a (only the address, which is still there).
The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 13:35
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#50
|
also, in alarm_notify()
sound_file is a strdup'd and then sent to alarm_notify_notification_calendar(), which calls notify_notification_set_hint_string().
Immediately after that, sound_file is g_free()'d. Hopefully notify_notification_set_hint_string() makes a copy of it, as otherwise the pointer to the string will be invalid (hey, could be the reason for some calendar events not ringing
Tags |
alarm clock, nokia n9 |
|
Never fear. I is here.
720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900
Community SSU developer
kernel-power developer and maintainer