Ignore:
Timestamp:
Apr 19, 2008, 1:29:31 PM (13 years ago)
Author:
Pascal Terjan
Message:

We should not free the canvas if it was auto created with the display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/cucul-canvas.c

    r2094 r2295  
    4242{
    4343    VALUE obj;   
    44     obj = Data_Wrap_Struct(klass, 0, canvas_free, NULL);
     44    obj = Data_Wrap_Struct(klass, NULL, canvas_free, NULL);
    4545    return obj;
    4646}
     
    4848VALUE canvas_create(cucul_canvas_t *canvas)
    4949{
    50     return Data_Wrap_Struct(cCanvas, 0, canvas_free, canvas);
     50    return Data_Wrap_Struct(cCanvas, NULL, NULL, canvas);
    5151}
    5252
Note: See TracChangeset for help on using the changeset viewer.