summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/win/QTCFDictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/win/QTCFDictionary.cpp')
-rw-r--r--WebCore/platform/graphics/win/QTCFDictionary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/win/QTCFDictionary.cpp b/WebCore/platform/graphics/win/QTCFDictionary.cpp
index ada1500..3c72792 100644
--- a/WebCore/platform/graphics/win/QTCFDictionary.cpp
+++ b/WebCore/platform/graphics/win/QTCFDictionary.cpp
@@ -52,9 +52,10 @@ CFDictionaryRef QTCFDictionaryCreateCopyWithDataCallback(CFAllocatorRef allocato
ASSERT(callback);
CFDataRef data = QTCFPropertyListCreateXMLData(kCFAllocatorDefault, dictionary);
+ if (!data)
+ return 0;
CFDictionaryRef outputDictionary = callback(allocator, CFDataGetBytePtr(data), CFDataGetLength(data));
- if (data)
- CFRelease(data);
+ CFRelease(data);
return outputDictionary;
}