From bc075507080607a79c688c5aef4e1c3d895747ac Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 20 Jun 2015 06:30:26 +0200 Subject: fixed crash using animated images in plugins --- libskindesignerapi/osdelements.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libskindesignerapi') diff --git a/libskindesignerapi/osdelements.c b/libskindesignerapi/osdelements.c index 74524d7..105a409 100644 --- a/libskindesignerapi/osdelements.c +++ b/libskindesignerapi/osdelements.c @@ -78,6 +78,9 @@ skindesignerapi::cViewGrid::cViewGrid(skindesignerapi::ISkinDisplayPlugin *view, } skindesignerapi::cViewGrid::~cViewGrid() { + if (!view) + return; + view->ClearGrids(viewGridID); } void skindesignerapi::cViewGrid::SetGrid(long gridID, double x, double y, double width, double height) { -- cgit v1.2.3