diff options
Diffstat (limited to 'libskindesignerapi')
| -rw-r--r-- | libskindesignerapi/osdelements.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
