Changeset 370

Show
Ignore:
Timestamp:
03/09/06 03:24:36 (3 years ago)
Author:
kickback
Message:

sweep:view.c: fixed ticket:9 close while loading segfault. needed to cancel the active ops and remove a gtk_idle function in view_destroy_cb before removing the sample/window. comments in the cancel_active_op function mention possible leaks. i'll investigate that.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sweep/trunk/src/view.c

    r285 r370  
    3939#include <sweep/sweep_typeconvert.h> 
    4040#include <sweep/sweep_sample.h> 
     41#include <sweep/sweep_undo.h> 
    4142 
    4243#include "view.h" 
     
    15071508  sample_display_stop_marching_ants (SAMPLE_DISPLAY(view->display)); 
    15081509 
     1510  if (view->sample->op_progress_tag != -1) 
     1511    gtk_timeout_remove(view->sample->op_progress_tag); 
     1512  cancel_active_op (view->sample); 
    15091513  sample_remove_view(view->sample, view); 
    15101514  gtk_widget_destroy (GTK_WIDGET (view->display));