Kaydet (Commit) e6212862 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

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: 's avatarTomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 9f392d0c)
üst 40c1bbd4
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
[textContent appendString:[NSString stringWithString:runningTextContent]]; [textContent appendString:[NSString stringWithString:runningTextContent]];
[runningTextContent release]; [runningTextContent release];
runningTextContent = nil;
} }
shouldReadCharacters = NO; shouldReadCharacters = NO;
} }
...@@ -125,9 +126,11 @@ ...@@ -125,9 +126,11 @@
if (runningTextContent != nil) { if (runningTextContent != nil) {
[runningTextContent release]; [runningTextContent release];
runningTextContent = nil;
} }
if (textContent != nil) { if (textContent != nil) {
[textContent release]; [textContent release];
textContent = nil;
} }
} }
...@@ -137,6 +140,7 @@ ...@@ -137,6 +140,7 @@
if (textContent != nil && [textContent length] > 0) { if (textContent != nil && [textContent length] > 0) {
[mdiValues setObject:[NSString stringWithString:textContent] forKey:(NSString*)kMDItemTextContent]; [mdiValues setObject:[NSString stringWithString:textContent] forKey:(NSString*)kMDItemTextContent];
[textContent release]; [textContent release];
textContent = nil;
} }
} }
......
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