summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-04-15 13:14:53 +0900
committerMichael Stahl <Michael.Stahl@cib.de>2019-04-24 11:16:05 +0200
commit9566be49c249f95d58eaf888fcaa3c48607cad7c (patch)
tree226637d89ee96924629c3911f8909d65200092cc /extensions
parent1d0729a5b7a96c6fb962b60a51eddf773773e379 (diff)
tdf#122172 set textContent to nil in OOoContentDataProvider
This should prevent the crash - at least it did for me AFAICS. Change-Id: I489264d8054e6577b948b0ab307c863d3140788a Reviewed-on: https://gerrit.libreoffice.org/70755 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 9f392d0c09bd946e4660ccc2d48ee3ae1367343c) Reviewed-on: https://gerrit.libreoffice.org/70914 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/macosx/spotlight/OOoContentDataParser.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/source/macosx/spotlight/OOoContentDataParser.m b/extensions/source/macosx/spotlight/OOoContentDataParser.m
index d394115a3010..89d92a8c126a 100644
--- a/extensions/source/macosx/spotlight/OOoContentDataParser.m
+++ b/extensions/source/macosx/spotlight/OOoContentDataParser.m
@@ -98,6 +98,7 @@
[textContent appendString:[NSString stringWithString:runningTextContent]];
[runningTextContent release];
+ runningTextContent = nil;
}
shouldReadCharacters = NO;
}
@@ -125,9 +126,11 @@
if (runningTextContent != nil) {
[runningTextContent release];
+ runningTextContent = nil;
}
if (textContent != nil) {
[textContent release];
+ textContent = nil;
}
}
@@ -137,6 +140,7 @@
if (textContent != nil && [textContent length] > 0) {
[mdiValues setObject:[NSString stringWithString:textContent] forKey:(NSString*)kMDItemTextContent];
[textContent release];
+ textContent = nil;
}
}