diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 12:28:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 12:30:19 +0300 |
commit | bbc5c1e36fc93e33fce4156f5064dfebe1129a57 (patch) | |
tree | d0631e65978720ce2eba8deede13ba0cc76821dc /source/blender/blenkernel/intern/studiolight.c | |
parent | 20bc30706b9c810ea774d98a768734767f9e91be (diff) |
Cleanup: quiet extra-semicolon warning
Diffstat (limited to 'source/blender/blenkernel/intern/studiolight.c')
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index df48e505f6f..b64f6a1d076 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -129,12 +129,13 @@ static const char *STUDIOLIGHT_MATCAP_DEFAULT = "basic_1.exr"; static void studiolight_free(struct StudioLight *sl) { #define STUDIOLIGHT_DELETE_ICON(s) \ - { \ + do { \ if (s != 0) { \ BKE_icon_delete(s); \ s = 0; \ } \ - } + } while (0) + if (sl->free_function) { sl->free_function(sl, sl->free_function_data); } |