fix a few memory leaks
This commit is contained in:
@@ -57,8 +57,8 @@ bool ncdc_cmd_msg(ncdc_mainwindow_t n, size_t ac, wchar_t **av)
|
||||
v = ncdc_textview_new();
|
||||
goto_if_true(v == NULL, cleanup);
|
||||
|
||||
ncdc_textview_set_account(v, dc_ref(current_account));
|
||||
ncdc_textview_set_channel(v, dc_ref(c));
|
||||
ncdc_textview_set_account(v, current_account);
|
||||
ncdc_textview_set_channel(v, c);
|
||||
|
||||
g_ptr_array_add(ncdc_mainwindow_views(n), dc_ref(v));
|
||||
ncdc_mainwindow_switchview(n, ncdc_mainwindow_views(n)->len-1);
|
||||
|
||||
Reference in New Issue
Block a user