mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Deallocate sw if allocated.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8418 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
9381a13388
commit
658aa40bd1
@ -11,7 +11,8 @@ subroutine plotsave(swide,nw,nh,irow)
|
||||
endif
|
||||
|
||||
if(nw.ne.nw0 .or. nh.ne.nh0) then
|
||||
if(nw0.ne.-1) deallocate(sw)
|
||||
if(allocated(sw)) deallocate(sw)
|
||||
! if(nw0.ne.-1) deallocate(sw)
|
||||
allocate(sw(0:nw-1,0:nh-1))
|
||||
sw=0.
|
||||
nw0=nw
|
||||
|
Loading…
Reference in New Issue
Block a user