Libravatar: refactor and fix leak on corner case
commitcb87edf1710e8021ed0affc2157cf0c340660c72
authorRicardo Mones <ricardo@mones.org>
Mon, 22 Jun 2015 22:38:31 +0000 (23 00:38 +0200)
committerRicardo Mones <ricardo@mones.org>
Tue, 23 Jun 2015 08:07:59 +0000 (23 10:07 +0200)
tree8b5ed065dc5aa4673576b28bce6fd05af51e183c
parent601733aa309a83af7871a7d209386a978c086106
Libravatar: refactor and fix leak on corner case

 • Move cache initialization to its own file
 • Fix leaked cache_dir path when initialization failed
src/plugins/libravatar/Makefile.am
src/plugins/libravatar/libravatar.c
src/plugins/libravatar/libravatar.h
src/plugins/libravatar/libravatar_cache.c [new file with mode: 0644]
src/plugins/libravatar/libravatar_cache.h [copied from src/plugins/libravatar/libravatar.h with 52% similarity]