Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
e3fd062c
Commit
e3fd062c
authored
8 years ago
by
Denis Fokin
1
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-142156 Project leak on SheetController$2
parent
c50744c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/ui/messages/SheetController.java
+7
-2
...rm-impl/src/com/intellij/ui/messages/SheetController.java
with
7 additions
and
2 deletions
+7
-2
platform/platform-impl/src/com/intellij/ui/messages/SheetController.java
+
7
-
2
View file @
e3fd062c
...
...
@@ -44,6 +44,9 @@ import java.net.URL;
* Created by Denis Fokin
*/
public
class
SheetController
{
private
static
final
KeyStroke
VK_ESC_KEYSTROKE
=
KeyStroke
.
getKeyStroke
(
KeyEvent
.
VK_ESCAPE
,
0
);
private
static
final
Logger
LOG
=
Logger
.
getInstance
(
SheetController
.
class
);
private
static
final
int
SHEET_MINIMUM_HEIGHT
=
143
;
private
static
final
String
fontName
=
"Lucida Grande"
;
...
...
@@ -208,7 +211,7 @@ public class SheetController {
};
mySheetPanel
.
registerKeyboardAction
(
actionListener
,
KeyStroke
.
getKeyStroke
(
KeyEvent
.
VK_ESCAPE
,
0
)
,
VK_ESC_KEYSTROKE
,
JComponent
.
WHEN_IN_FOCUSED_WINDOW
);
for
(
JButton
button:
buttons
)
{
...
...
@@ -476,6 +479,8 @@ public class SheetController {
g
.
dispose
();
myOffScreenFrame
.
remove
(
mySheetPanel
);
myOffScreenFrame
.
dispose
();
return
image
;
}
...
...
@@ -489,7 +494,7 @@ public class SheetController {
}
public
void
dispose
()
{
mySheetPanel
.
unregisterKeyboardAction
(
KeyStroke
.
getKeyStroke
(
KeyEvent
.
VK_ESCAPE
,
0
)
);
mySheetPanel
.
unregisterKeyboardAction
(
VK_ESC_KEYSTROKE
);
mySheetMessage
=
null
;
}
}
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
e59cce0f
·
2 years ago
mentioned in commit
e59cce0f
mentioned in commit e59cce0f6ef8cfee19ef686e7f858ea4afbcedec
Toggle commit list
Write
Preview
Supports
Markdown
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