Changeset 460
- Timestamp:
- 01/08/07 18:54:36 (5 years ago)
- Files:
-
- sweep/trunk/include/sweep/sweep_selection.h (modified) (1 diff)
- sweep/trunk/src/sample.c (deleted)
- sweep/trunk/src/sweep_selection.c (modified) (1 diff)
- sweep/trunk/src/sweep_sounddata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/include/sweep/sweep_selection.h
r124 r460 24 24 sw_sel * 25 25 sel_new (sw_framecount_t start, sw_framecount_t end); 26 27 void 28 sel_free (sw_sel * sel); 26 29 27 30 sw_sel * sweep/trunk/src/sweep_selection.c
r124 r460 50 50 51 51 return sel; 52 } 53 54 void 55 sel_free (sw_sel * sel) 56 { 57 if (!sel) 58 return; 59 60 g_free(sel); 52 61 } 53 62 sweep/trunk/src/sweep_sounddata.c
r304 r460 100 100 sounddata_clear_selection (sw_sounddata * sounddata) 101 101 { 102 GList * gl; 103 sw_sel * sel; 104 105 g_mutex_lock (sounddata->sels_mutex); 106 107 for (gl = sounddata->sels; gl; gl = gl->next){ 108 sel = (sw_sel*)gl->data; 109 sel_free(sel); 110 } 111 102 112 g_list_free(sounddata->sels); 103 113 104 114 sounddata->sels = NULL; 115 116 g_mutex_unlock (sounddata->sels_mutex); 105 117 }; 106 118 … … 245 257 246 258 /* Clear the old selection */ 247 g_list_free(sounddata->sels);259 sounddata_clear_selection (sounddata->sels); 248 260 249 261 /* Set the newly created (normalised) selection */
