}
void screen_deinit(void) {
+ fprintf(stderr, "deinitializing screen\n");
mem_release(Screen_List);
}
}
static void screen_frame_free(void* p_frame_ptr) {
+ fprintf(stderr, "freeing frame\n");
frame_t* p_frame = (frame_t*)p_frame_ptr;
wclear(p_frame->p_win);
wborder(p_frame->p_win, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');
+/* external libraries */
#include <ncurses.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
+/* internal libraries */
#include "vec.h"
#include "mem.h"
+
+/* internal headers */
#include "state.h"
#include "workdir.h"
#include "screen.h"
void workdir_free(void* p_wd){
WorkDir_T* wd = (WorkDir_T*)p_wd;
+ fprintf(stderr, "freeing workdir\n");
mem_release(wd->vfiles);
mem_release(wd->path);
}
free(filename);
filename = 0;
}
+ pclose(ls);
//mem_release(dotdot); #dont free, because there's a bug(?) in vectors and reference counting
//reference counter is not incremented for added items, so releasinghere will free the memory
mem_release(cmd);