diff --git a/toonz/sources/common/twain/ttwain_capability.c b/toonz/sources/common/twain/ttwain_capability.c index 7fa9d5c..2ae88ad 100644 --- a/toonz/sources/common/twain/ttwain_capability.c +++ b/toonz/sources/common/twain/ttwain_capability.c @@ -273,6 +273,7 @@ int TTWAIN_SetCap(TW_UINT16 cap_id, TW_UINT16 conType, TW_UINT16 itemType, if (!capabilityH) { GLOBAL_UNLOCK(containerH); GLOBAL_FREE(containerH); + containerH = NULL; goto done; }