Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
860ae452
Commit
860ae452
authored
Nov 02, 2014
by
Jan Djärv
Browse files
Fix memory leak
* nsimage.m (allocInitFromFile:): Initialize bmRep. (dealloc): Release bmRep.
parent
65bb8d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
src/ChangeLog
src/ChangeLog
+3
-0
src/nsimage.m
src/nsimage.m
+2
-0
No files found.
src/ChangeLog
View file @
860ae452
2014-11-02 Jan Djärv <jan.h.d@swipnet.se>
* nsimage.m (allocInitFromFile:): Initialize bmRep.
(dealloc): Release bmRep.
* nsterm.h (EmacsImage): Remove imageListNext, refCount, reference,
imageListSetNext, imageListNext.
...
...
src/nsimage.m
View file @
860ae452
...
...
@@ -174,6 +174,7 @@ @implementation EmacsImage
image
=
[[
EmacsImage
alloc
]
initByReferencingFile
:
[
NSString
stringWithUTF8String
:
SSDATA
(
found
)]];
image
->
bmRep
=
nil
;
#ifdef NS_IMPL_COCOA
imgRep
=
[
NSBitmapImageRep
imageRepWithData
:[
image
TIFFRepresentation
]];
#else
...
...
@@ -199,6 +200,7 @@ @implementation EmacsImage
-
(
void
)
dealloc
{
[
stippleMask
release
];
[
bmRep
release
];
[
super
dealloc
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment