Mercurial > pidgin
comparison finch/libgnt/gntstyle.c @ 18317:8aff2d3d6820
Plug a memory leak.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 20:46:39 +0000 |
parents | adcb44a07a2d |
children | 65ed0916d3bc 576edd9c4f72 |
comparison
equal
deleted
inserted
replaced
18316:70325b0c5792 | 18317:8aff2d3d6820 |
---|---|
43 const char *gnt_style_get(GntStyle style) | 43 const char *gnt_style_get(GntStyle style) |
44 { | 44 { |
45 return str_styles[style]; | 45 return str_styles[style]; |
46 } | 46 } |
47 | 47 |
48 const char *gnt_style_get_from_name(const char *group, const char *key) | 48 char *gnt_style_get_from_name(const char *group, const char *key) |
49 { | 49 { |
50 #if GLIB_CHECK_VERSION(2,6,0) | 50 #if GLIB_CHECK_VERSION(2,6,0) |
51 return g_key_file_get_value(gkfile, group, key, NULL); | 51 return g_key_file_get_value(gkfile, group, key, NULL); |
52 #endif | 52 #endif |
53 } | 53 } |