comparison src/audacious/ui_main_evlisteners.c @ 4581:cf6711eeb12f

implement event_queue_with_data_free()
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 18:40:05 +0200
parents 910ed095b5a9
children 78e21c07ba6a
comparison
equal deleted inserted replaced
4580:910ed095b5a9 4581:cf6711eeb12f
61 { 61 {
62 gchar *text = (gchar *) hook_data; 62 gchar *text = (gchar *) hook_data;
63 63
64 ui_skinned_textbox_set_text(mainwin_info, text); 64 ui_skinned_textbox_set_text(mainwin_info, text);
65 playlistwin_update_list(playlist_get_active()); 65 playlistwin_update_list(playlist_get_active());
66 g_free(text);
67 } 66 }
68 67
69 static void 68 static void
70 ui_main_evlistener_hide_seekbar(gpointer hook_data, gpointer user_data) 69 ui_main_evlistener_hide_seekbar(gpointer hook_data, gpointer user_data)
71 { 70 {
185 ui_main_evlistener_playlist_info_change(gpointer hook_data, gpointer user_data) 184 ui_main_evlistener_playlist_info_change(gpointer hook_data, gpointer user_data)
186 { 185 {
187 PlaylistEventInfoChange *msg = (PlaylistEventInfoChange *) hook_data; 186 PlaylistEventInfoChange *msg = (PlaylistEventInfoChange *) hook_data;
188 187
189 mainwin_set_song_info(msg->bitrate, msg->samplerate, msg->channels); 188 mainwin_set_song_info(msg->bitrate, msg->samplerate, msg->channels);
190
191 g_free(msg);
192 } 189 }
193 190
194 static void 191 static void
195 ui_main_evlistener_mainwin_set_always_on_top(gpointer hook_data, gpointer user_data) 192 ui_main_evlistener_mainwin_set_always_on_top(gpointer hook_data, gpointer user_data)
196 { 193 {