mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-07 14:26:00 +01:00
more memory cleanup
This commit is contained in:
parent
af61d097ed
commit
7627aa1752
1 changed files with 9 additions and 1 deletions
10
zathura.c
10
zathura.c
|
@ -4005,8 +4005,16 @@ cb_destroy(GtkWidget* widget, gpointer data)
|
||||||
if(Zathura.PDF.document)
|
if(Zathura.PDF.document)
|
||||||
close_file(FALSE);
|
close_file(FALSE);
|
||||||
|
|
||||||
/* clean up other variables */
|
/* clean up bookmarks */
|
||||||
g_free(Zathura.Bookmarks.file);
|
g_free(Zathura.Bookmarks.file);
|
||||||
|
if (Zathura.Bookmarks.data)
|
||||||
|
g_key_file_free(Zathura.Bookmarks.data);
|
||||||
|
|
||||||
|
/* destroy mutexes */
|
||||||
|
g_static_mutex_free(&(Zathura.Lock.pdflib_lock));
|
||||||
|
g_static_mutex_free(&(Zathura.Lock.search_lock));
|
||||||
|
g_static_mutex_free(&(Zathura.Lock.pdf_obj_lock));
|
||||||
|
g_static_mutex_free(&(Zathura.Lock.select_lock));
|
||||||
|
|
||||||
/* inotify */
|
/* inotify */
|
||||||
if(Zathura.FileMonitor.monitor)
|
if(Zathura.FileMonitor.monitor)
|
||||||
|
|
Loading…
Reference in a new issue