Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plugins
pidgin-otr
Commits
f3ad0dfa
Commit
f3ad0dfa
authored
Jul 19, 2012
by
Ian Goldberg
Browse files
Clean up some unused variables and a memory leak
Thanks to Paul Wouters <paul@cypherpunks.ca> for the report.
parent
3c6cd37b
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk-dialog.c
View file @
f3ad0dfa
...
...
@@ -1436,7 +1436,6 @@ static void otrg_gtk_dialog_verify_fingerprint(Fingerprint *fprint)
static
void
otrg_gtk_dialog_socialist_millionaires
(
ConnContext
*
context
,
char
*
question
,
gboolean
responder
)
{
GtkWidget
*
dialog
;
char
*
primary
;
PurplePlugin
*
p
;
char
*
proto_name
;
...
...
@@ -1455,7 +1454,7 @@ static void otrg_gtk_dialog_socialist_millionaires(ConnContext *context,
proto_name
=
(
p
&&
p
->
info
->
name
)
?
p
->
info
->
name
:
_
(
"Unknown"
);
dialog
=
create_smp_dialog
(
_
(
"Authenticate Buddy"
),
create_smp_dialog
(
_
(
"Authenticate Buddy"
),
primary
,
context
,
responder
,
question
);
g_free
(
primary
);
...
...
@@ -2010,8 +2009,6 @@ static void build_otr_menu(ConvOrContext *convctx, GtkWidget *menu,
TrustLevel
level
)
{
PurpleConversation
*
conv
;
PidginConversation
*
gtkconv
;
PidginWindow
*
win
;
if
(
convctx
->
convctx_type
==
convctx_conv
)
{
conv
=
convctx
->
conv
;
...
...
@@ -2021,9 +2018,6 @@ static void build_otr_menu(ConvOrContext *convctx, GtkWidget *menu,
return
;
}
gtkconv
=
PIDGIN_CONVERSATION
(
conv
);
win
=
pidgin_conv_get_window
(
gtkconv
);
GtkWidget
*
buddymenuquery
=
gtk_menu_item_new_with_mnemonic
(
_
(
"Start _private conversation"
));
GtkWidget
*
buddymenuend
=
gtk_menu_item_new_with_mnemonic
(
...
...
@@ -2329,8 +2323,6 @@ static void otr_add_buddy_instances_top_menu(PidginConversation *gtkconv,
ConvOrContext
convctx
;
GList
*
menu_list
;
menu
=
gtk_menu_new
();
conv
=
otrg_plugin_context_to_conv
(
context
,
0
);
selection_exists
=
g_hash_table_lookup_extended
(
conv
->
data
,
"otr-ui_selected_ctx"
,
NULL
,
&
gp_instance
);
...
...
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