diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-05-22 01:42:36 +0400 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-05-22 01:42:36 +0400 |
commit | 30f7d152967f46761efb550794d00c90cdb5ef9e (patch) | |
tree | d26f6a3fdb1ecb50601ae40c8e140354dae7ded5 /source/blender/quicktime/apple | |
parent | 89e9090c861839e7f4289c13f26ab12d4b503610 (diff) |
fixed a memory deallocation error.
Diffstat (limited to 'source/blender/quicktime/apple')
-rw-r--r-- | source/blender/quicktime/apple/quicktime_export.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/quicktime/apple/quicktime_export.c b/source/blender/quicktime/apple/quicktime_export.c index 68b69b74625..e456be3ea08 100644 --- a/source/blender/quicktime/apple/quicktime_export.c +++ b/source/blender/quicktime/apple/quicktime_export.c @@ -170,7 +170,6 @@ OSErr SaveExporterSettingsToMem (QuicktimeCodecData *qcd) QTAtomContainer myContainer = NULL; ComponentResult myErr = noErr; Ptr myPtr; - Handle myHandle; long mySize = 0; // check if current scene already has qtcodec settings, and erase them @@ -197,9 +196,7 @@ OSErr SaveExporterSettingsToMem (QuicktimeCodecData *qcd) // lock and convert the atomcontainer to a *valid* pointer QTLockContainer(myContainer); - myHandle = (Handle) myContainer; - HLockHi(myHandle); - myPtr = *myHandle; + myPtr = *(Handle)myContainer; // copy the Quicktime data into the blender qtcodecdata struct if (myPtr) { @@ -214,8 +211,6 @@ OSErr SaveExporterSettingsToMem (QuicktimeCodecData *qcd) QTUnlockContainer(myContainer); bail: - if (myHandle != NULL) - DisposeHandle(myHandle); if (myContainer != NULL) QTDisposeAtomContainer(myContainer); |