Skip to content

Commit

Permalink
Merge pull request #643 from afni/vol2surf_fix
Browse files Browse the repository at this point in the history
SUMA_Color.c: fix SUMA_FreeOverlayPointer() via 3dVol2Surf
  • Loading branch information
afni-rickr authored May 26, 2024
2 parents 535a765 + 1026666 commit 748824d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SUMA/SUMA_Color.c
Original file line number Diff line number Diff line change
Expand Up @@ -6696,8 +6696,6 @@ SUMA_Boolean SUMA_FreeOverlayPointer (SUMA_OVERLAYS * Sover)
if (!SUMA_SetOverlay_Vecs(Sover, 'A', -1, "clear", 0)) {
SUMA_S_Err("Failed to clear T/V");
}

SUMA_free(Sover); Sover = NULL;

if (Sover->originalColVec) {
SUMA_free(Sover->originalColVec);
Expand All @@ -6709,6 +6707,8 @@ SUMA_Boolean SUMA_FreeOverlayPointer (SUMA_OVERLAYS * Sover)
Sover->originalCMapName = NULL;
}

SUMA_free(Sover); Sover = NULL;

SUMA_RETURN (YUP);
}

Expand Down

0 comments on commit 748824d

Please sign in to comment.