Changeset 3929


Ignore:
Timestamp:
2012-01-09 09:20:32 (2 years ago)
Author:
drobilla
Message:

Fix compilation on old glib with no g_slist_free_full (fix #792).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ganv/src/canvas-base.c

    r3928 r3929  
    10661066    if (canvas->need_redraw) { 
    10671067        canvas->need_redraw = FALSE; 
    1068         g_slist_free_full(canvas->redraw_region, g_free); 
     1068        g_slist_foreach(canvas->redraw_region, (GFunc)g_free, NULL); 
     1069        g_slist_free(canvas->redraw_region); 
    10691070        canvas->redraw_region = NULL; 
    10701071        canvas->redraw_x1   = 0; 
     
    19531954 
    19541955        gdk_window_invalidate_rect(canvas->layout.bin_window, &gdkrect, FALSE); 
    1955     } 
    1956  
    1957     g_slist_free_full(canvas->redraw_region, g_free); 
     1956        g_free(rect); 
     1957    } 
     1958 
     1959    g_slist_free(canvas->redraw_region); 
    19581960    canvas->redraw_region = NULL; 
    19591961    canvas->need_redraw = FALSE; 
Note: See TracChangeset for help on using the changeset viewer.