Kaydet (Commit) 9e569554 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

fdo#47689: Avoid crashing mdworker: Don't use uninitialized variable

It's the isCustom field that should be checked to see whether the
customAttribute field has been assigned or not.

Change-Id: I5d2af26b675ab0cbc0e1844eb98ebaf5145eb73d
üst 7be62624
...@@ -172,7 +172,7 @@ static NSDictionary *metaXML2MDIKeys; ...@@ -172,7 +172,7 @@ static NSDictionary *metaXML2MDIKeys;
} }
// cleanup part 1 // cleanup part 1
[textCurrentElement release]; [textCurrentElement release];
if (customAttribute != nil) { if (isCustom == YES) {
[customAttribute release]; [customAttribute release];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment