Fix XMMS2 related crash (sf.net #2806111 and #2805310, thanks Lassi).
authorLassi Selander <sleipner@users.sourceforge.net>
Sun, 14 Jun 2009 18:03:50 +0000 (12:03 -0600)
committerBrenden Matthews <brenden@rty.ca>
Sun, 14 Jun 2009 18:03:50 +0000 (12:03 -0600)
ChangeLog
doc/config_settings.xml
doc/variables.xml
src/conky.c
src/xmms2.c
src/xmms2.h

index 21b6d31..6375f55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-06-14
+       * Fix XMMS2 related crash (sf.net #2806111 and #2805310, thanks Lassi)
+
 2009-06-13
        * Added support for $blink
        * Added support for $to_bytes
index 5bca767..deb5c0d 100644 (file)
                 <option>own_window_type</option>
             </command>
         </term>
-        <listitem>if own_window is yes, you may specify type normal,
-        desktop, dock, panel or override (default: normal).  Desktop
-        windows are special windows that have no window decorations;
-        are always visible on your desktop; do not appear in your
-        pager or taskbar; and are sticky across all workspaces. Panel
-        windows reserve space along a desktop edge, just like panels
-        and taskbars, preventing maximized windows from overlapping
-        them. The edge is chosen based on the alignment
-        option. Override windows are not under the control of the
-        window manager. Hints are ignored. This type of window can be
-        useful for certain situations.
+        <listitem>if own_window is yes, you may specify type
+        normal, desktop, dock, panel or override (default: normal).
+        Desktop windows are special windows that have no window
+        decorations; are always visible on your desktop; do not
+        appear in your pager or taskbar; and are sticky across all
+        workspaces. Panel windows reserve space along a desktop
+        edge, just like panels and taskbars, preventing maximized
+        windows from overlapping them. The edge is chosen based on
+        the alignment option. Override windows are not under the
+        control of the window manager. Hints are ignored. This type
+        of window can be useful for certain situations. 
         <para /></listitem>
     </varlistentry>
     <varlistentry>
index 41f6f9a..d38df09 100644 (file)
             <option>text_and_other_conky_vars</option>
         </term>
         <listitem>Let 'text_and_other_conky_vars' blink on and off.
+        
         <para /></listitem>
     </varlistentry>
     <varlistentry>
index 01e0338..be778e4 100644 (file)
@@ -5199,10 +5199,6 @@ static void generate_text_internal(char *p, int p_max_size,
 #undef mpd_printf
 #endif
 
-#ifdef XMMS2
-    free_xmms2();
-#endif
-
 #ifdef MOC
 #define MOC_PRINT(t, a) \
        snprintf(p, p_max_size, "%s", (moc.t ? moc.t : a))
index c8607e9..24398b3 100644 (file)
@@ -249,7 +249,7 @@ int handle_playlist_loaded(xmmsv_t *value, void *p)
        return TRUE;
 }
 
-void update_xmms2()
+void update_xmms2(void)
 {
        struct information *current_info = &info;
 
@@ -318,21 +318,3 @@ void update_xmms2()
        }
 
 
-void free_xmms2()
-{
-       struct information *current_info = &info;
-
-       current_info->xmms2.conn_state = -1;
-
-       free(current_info->xmms2.artist);
-       free(current_info->xmms2.album);
-       free(current_info->xmms2.title);
-       free(current_info->xmms2.genre);
-       free(current_info->xmms2.comment);
-       free(current_info->xmms2.url);
-       free(current_info->xmms2.date);
-       free(current_info->xmms2.playlist);
-       free(current_info->xmms2.status);
-}
-
-
index e51a93d..1f8045d 100644 (file)
@@ -52,6 +52,5 @@ struct xmms2_s {
 };
 
 void update_xmms2(void);
-void free_xmms2(void);
 
 #endif /*XMMS2_H_*/