If 'view->play' is interrupted with the 'stop' button, note that the playback has...
[synfig.git] / synfig-studio / trunk / src / gtkmm / canvasview.cpp
index b8f60c3..9e597d4 100644 (file)
@@ -912,6 +912,10 @@ CanvasView::~CanvasView()
 
        hide();
 
+       // don't be calling on_dirty_preview once this object has been deleted;
+       // this was causing a crash before
+       canvas_interface()->signal_dirty_preview().clear();
+
        synfig::info("CanvasView:~CanvasView(): Destructor Finished");
 }
 
@@ -2833,7 +2837,10 @@ CanvasView::play()
                        studio::App::iteration(false);
 
                if(get_cancel_status())
+               {
+                       is_playing_=false;
                        return;
+               }
        }
        is_playing_=false;